[totem] Fix failure to save downloaded subtitles
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Subject: [totem] Fix failure to save downloaded subtitles
- Date: Thu, 23 Apr 2009 08:56:30 -0400 (EDT)
commit bf58faaea43eb70e4c8c73b6e3ea2f57d3403b47
Author: Bastien Nocera <hadess hadess net>
Date: Thu Apr 23 13:55:26 2009 +0100
Fix failure to save downloaded subtitles
2009-04-23 Bastien Nocera <hadess hadess net>
* src/plugins/opensubtitles/opensubtitles.py:
Fix failure to save downloaded subtitles, see
https://bugzilla.redhat.com/show_bug.cgi?id=497210
---
ChangeLog | 6 ++++++
src/plugins/opensubtitles/opensubtitles.py | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c3a31d1..1bbb840 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-04-23 Bastien Nocera <hadess hadess net>
+
+ * src/plugins/opensubtitles/opensubtitles.py:
+ Fix failure to save downloaded subtitles, see
+ https://bugzilla.redhat.com/show_bug.cgi?id=497210
+
2009-04-22 Bastien Nocera <hadess hadess net>
* browser-plugin/totem-plugin-viewer.c (totem_embedded_set_uri):
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py
index c67b5b9..ec0e6d2 100644
--- a/src/plugins/opensubtitles/opensubtitles.py
+++ b/src/plugins/opensubtitles/opensubtitles.py
@@ -517,7 +517,7 @@ class OpenSubtitles(totem.Plugin):
if not filename:
directory = gio.File(xdg.BaseDirectory.xdg_cache_home + sep + 'totem' + sep + 'subtitles' + sep)
if not directory.query_exists():
- directory.make_directory()
+ directory.make_directory_with_parents()
file = gio.File(self.filename)
movie_name = file.get_basename().rpartition('.')[0]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]