[totem] opensubtitles: Parse the subtitle file as a URI rather than a path
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] opensubtitles: Parse the subtitle file as a URI rather than a path
- Date: Wed, 30 Mar 2011 19:32:17 +0000 (UTC)
commit 0db439ab4e84ff49c7f4011093c7df74097dc781
Author: Philip Withnall <philip tecnocode co uk>
Date: Wed Mar 30 16:09:21 2011 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py
index 3b419ca..1c4edb8 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]