From 0db439ab4e84ff49c7f4011093c7df74097dc781 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 30 Mar 2011 16:09:21 +0100 Subject: 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. --- src/plugins/opensubtitles/opensubtitles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py index 3b419cab2..1c4edb8dc 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) -- cgit v1.2.1