Unified · Split
| @@ -30,10 +30,10 @@ if __name__ == "__main__": · 29 unmodified lines | |||
| 30 | if not mpv_desktop["X-KDE-Protocols"]: | 30 | if not mpv_desktop["X-KDE-Protocols"]: |
| 31 | raise ValueError("Missing X-KDE-Protocols entry in mpv.desktop file") | 31 | raise ValueError("Missing X-KDE-Protocols entry in mpv.desktop file") |
| 32 | 32 | ||
| 33 | with open(sys.argv[2], encoding="UTF-8") as mpv_protocols: | 33 | with open(sys.argv[2], encoding="UTF-8") as mpv_protocols_f: |
| 34 | mpv_protocols = { | 34 | mpv_protocols = { |
| 35 | line.strip(" :/") | 35 | line.strip(" :/") |
| 36 | for line in mpv_protocols.read().splitlines() | 36 | for line in mpv_protocols_f.read().splitlines() |
| 37 | if "://" in line | 37 | if "://" in line |
| 38 | } | 38 | } |
| 39 | 39 | ||