[totem/gnome-2-26] Fix failure to save downloaded subtitles
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Subject: [totem/gnome-2-26] Fix failure to save downloaded subtitles
- Date: Thu, 23 Apr 2009 08:58:08 -0400 (EDT)
commit a5c33c64b82bff97484543b4af5454a00a2e978e
Author: Bastien Nocera <hadess hadess net>
Date: Thu Apr 23 13:57:38 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 9d73ee9..81c97ad 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 (resolve_uri):
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py
index 9ada1f3..a9ed18d 100644
--- a/src/plugins/opensubtitles/opensubtitles.py
+++ b/src/plugins/opensubtitles/opensubtitles.py
@@ -508,7 +508,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]