playcount fix for ipod

git-svn-id: svn://svn.berlios.de/gpodder/trunk@306 b0d088ad-0a06-0410-aad2-9ed5178a7e87
This commit is contained in:
Thomas Perl 2007-04-05 05:50:21 +00:00
parent fc79e519d9
commit 004b86f256
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Thu, 5 Apr 2007 07:49:19 +0200 <thp@perli.net>
* src/gpodder/libipodsync.py: Increment playcount from zero to one
if we've played a podcast locally, but playcount is still zero on
iPod
Wed, 4 Apr 2007 18:10:17 +0200 <thp@perli.net>
* data/po/pt.po: Updated Portuguese translation from Joel Calado
(joelcalado gmail.com)

View File

@ -323,6 +323,10 @@ class gPodder_iPodSync( gPodderSyncMethod):
gl = libgpodder.gPodderLib()
if gl.history_is_played( episode.url):
track.mark_unplayed = 0x01
# Increment playcount if it's played locally
# but still has zero playcount on iPod
if track.playcount == 0:
track.playcount = 1
else:
track.mark_unplayed = 0x02