summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2011-03-30 16:09:21 +0100
committerPhilip Withnall <philip@tecnocode.co.uk>2011-03-30 20:31:39 +0100
commit0db439ab4e84ff49c7f4011093c7df74097dc781 (patch)
treecfea293b213558ff79424ce5cd3ccc7c2f6fdd9e
parent905f245233688aa6b4e9efb5e355ef7554963c13 (diff)
opensubtitles: Parse the subtitle file as a URI rather than a path
This means the subtitle file can actually be saved, allowing subtitles to be downloaded and loaded correctly.
-rw-r--r--src/plugins/opensubtitles/opensubtitles.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py
index 3b419cab..1c4edb8d 100644
--- a/src/plugins/opensubtitles/opensubtitles.py
+++ b/src/plugins/opensubtitles/opensubtitles.py
@@ -560,7 +560,7 @@ class OpenSubtitles(gobject.GObject, Peas.Activatable):
if fp.query_exists(None):
fp.delete(None)
- fp = Gio.file_new_for_path(filename)
+ fp = Gio.file_new_for_uri (filename)
suburi = fp.get_uri ()
subFile = fp.replace('', False)