diff options
author | Nicholas Piper <nicholas@users.sourceforge.net> | 2006-05-30 15:23:29 +0000 |
---|---|---|
committer | Nicholas Piper <nicholas@users.sourceforge.net> | 2006-05-30 15:23:29 +0000 |
commit | 8460cd579ddc9160e2db95d8842ee74ed826c0b5 (patch) | |
tree | f4591cfe9d52f01d96e8ed37f3fbeb6b36bb341b | |
parent | 4ff7387c3f4eefe1e86e44ad3ae52043770baf1e (diff) | |
download | libgpod-8460cd579ddc9160e2db95d8842ee74ed826c0b5.tar.gz libgpod-8460cd579ddc9160e2db95d8842ee74ed826c0b5.tar.xz libgpod-8460cd579ddc9160e2db95d8842ee74ed826c0b5.zip |
Catch up with flag2->skip_when_shuffling, flag3->remember_playback_position renames and remove flag1.
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1293 f01d2545-417e-4e96-918e-98f8d0dbbcb6
-rw-r--r-- | bindings/python/ipod.py | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/bindings/python/ipod.py b/bindings/python/ipod.py index 25dc463..a3ac1c0 100644 --- a/bindings/python/ipod.py +++ b/bindings/python/ipod.py @@ -171,8 +171,8 @@ class Track: "recent_playcount","transferred","BPM","app_rating", "type1","type2","compilation","starttime","stoptime", "checked","dbid","drm_userid","visible","filetype_marker", - "artwork_count","artwork_size","samplerate2", - "time_released","has_artwork","flag1","flag2","flag3","flag4", + "artwork_count","artwork_size","samplerate2", "remember_playback_position", + "time_released","has_artwork","flag4", "skip_when_shuffling", "lyrics_flag","movie_flag","mark_unplayed","samplecount", "chapterdata_raw","chapterdata_raw_length","artwork", "usertype") @@ -213,15 +213,7 @@ class Track: if of is not None: self['tracks'] = of self['tracklen'] = audiofile.getPlayTime() * 1000 - if podcast: - self['flag2'] = 0x01 # skip when shuffling - self['flag3'] = 0x01 # remember playback position - self['flag4'] = 0x01 # Show Title/Album on the 'Now Playing' page - else: - self['flag2'] = 0x00 # do not skip when shuffling - self['flag3'] = 0x00 # do not remember playback position - self['flag4'] = 0x00 # Show Title/Album/Artist on the 'New Playing' page - + self.set_podcast(podcast) elif proxied_track: self._track = proxied_track else: @@ -246,14 +238,12 @@ class Track: def set_podcast(self, value): if value: - self['flag1'] = 0x02 # unknown - self['flag2'] = 0x01 # skip when shuffling - self['flag3'] = 0x01 # remember playback position + self['skip_when_shuffling'] = 0x01 + self['remember_playback_position'] = 0x01 self['flag4'] = 0x01 # Show Title/Album on the 'Now Playing' page else: - self['flag1'] = 0x02 # unknown - self['flag2'] = 0x00 # do not skip when shuffling - self['flag3'] = 0x00 # do not remember playback position + self['skip_when_shuffling'] = 0x00 + self['remember_playback_position'] = 0x00 self['flag4'] = 0x00 # Show Title/Album/Artist on the 'New Playing' page def __str__(self): |