diff options
author | Todd Zullinger <tmzullinger@users.sourceforge.net> | 2008-05-02 00:05:51 +0000 |
---|---|---|
committer | Todd Zullinger <tmzullinger@users.sourceforge.net> | 2008-05-02 00:05:51 +0000 |
commit | b946601562600e3daf2d8430c0028675cf3aca06 (patch) | |
tree | 145f74683c7b2142f177d6cc969ae27f6c31c048 | |
parent | dc62ef110f80af50548b0f7cf686a737f4c7c17b (diff) | |
download | libgpod-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-- | ChangeLog | 3 | ||||
-rw-r--r-- | bindings/python/ipod.py | 3 |
2 files changed, 6 insertions, 0 deletions
@@ -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) |