summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Zullinger <tmzullinger@users.sourceforge.net>2008-05-02 00:05:51 +0000
committerTodd Zullinger <tmzullinger@users.sourceforge.net>2008-05-02 00:05:51 +0000
commitb946601562600e3daf2d8430c0028675cf3aca06 (patch)
tree145f74683c7b2142f177d6cc969ae27f6c31c048
parentdc62ef110f80af50548b0f7cf686a737f4c7c17b (diff)
downloadlibgpod-b946601562600e3daf2d8430c0028675cf3aca06.tar.gz
libgpod-b946601562600e3daf2d8430c0028675cf3aca06.tar.xz
libgpod-b946601562600e3daf2d8430c0028675cf3aca06.zip
Write shuffle data (thanks to Diogo Dutra)
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1967 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r--ChangeLog3
-rw-r--r--bindings/python/ipod.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6bca7f2..107c49f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
* configure.ac:
Bump version to 0.6.1SVN
+ * bindings/python/ipod.py: write shuffle data (thanks to Diogo
+ Dutra)
+
2008-04-19 Jorg Schuler <jcsjcs at users.sourceforge.net>
* bindings/python/examples/Makefile.am
diff --git a/bindings/python/ipod.py b/bindings/python/ipod.py
index f8e608e..053eda6 100644
--- a/bindings/python/ipod.py
+++ b/bindings/python/ipod.py
@@ -111,6 +111,9 @@ class Database:
if not gpod.itdb_write_file(self._itdb, self._itdb_file, None):
raise DatabaseException("Unable to save iTunes database %s" % self)
+ if gpod.itdb_get_mountpoint(self._itdb):
+ if not gpod.itdb_shuffle_write(self._itdb, None):
+ raise DatabaseException("Unable to save shuffle database on %s" % self._itdb.mountpoint)
itdbext_file = "%s.ext" % (self._itdb_file)
gtkpod.write(itdbext_file, self, self._itdb_file)