libipodsync now defaults to 60 minutes for unknown-length podasts + warning

git-svn-id: svn://svn.berlios.de/gpodder/trunk@169 b0d088ad-0a06-0410-aad2-9ed5178a7e87
This commit is contained in:
Thomas Perl 2006-10-21 10:17:08 +00:00
parent 21d8736cfa
commit 1ec20d6acb
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Sat, 21 Oct 2006 12:15:30 +0200 <thp@perli.net>
* src/gpodder/libipodsync.py: Defaulting to 60 minutes podcast time
when not able to get real length (and spit out a warning for it)
Sat, 30 Sep 2006 20:34:19 +0200 <thp@perli.net>
* TODO: updated TODO list

View File

@ -218,8 +218,7 @@ class gPodder_iPodSync(object):
track_length = eyed3_info.getPlayTime() * 1000 # in milliseconds
# TODO: how to get length of video (mov, mp4, m4v) files??
except:
if libgpodder.isDebugging():
print '(ipodsync) Warning: cannot get length for %s, will use zero-length' % episode.title
print '(ipodsync) Warning: cannot get length for %s, will use 1 hour' % episode.title
track_length = 20*60*1000 # hmm.. (20m so we can skip on video/audio with unknown length)
track = gpod.itdb_track_new()