podcast flag setting, dumb bug fixing

git-svn-id: svn://svn.berlios.de/gpodder@94 b0d088ad-0a06-0410-aad2-9ed5178a7e87
This commit is contained in:
Thomas Perl 2006-04-09 12:12:19 +00:00
parent a7ab95f528
commit 0f5fe99a2a
3 changed files with 18 additions and 8 deletions

View File

@ -1,3 +1,7 @@
Sun, 09 Apr 2006 14:10:28 +0200 <thp@perli.net>
* Enabled podcast flag setting (works with libgpod cvs)
* Fixed a brainfart of mine -- new localDB could not be created
Sat, 08 Apr 2006 16:39:08 +0200 <thp@perli.net>
* Save more details in localDB
* Show more details in podcast window

View File

@ -184,10 +184,14 @@ class gPodder_iPodSync(object):
if not ipod_supported():
return False
# try to modify track to be more podcast-ish
#track.flag1 = 0x02
#track.flag2 = 0x01
#track.flag3 = 0x01
#track.flag4 = 0x01
try:
track.flag1 = 0x02
track.flag2 = 0x01
track.flag3 = 0x01
track.flag4 = 0x01
except:
if libgpodder.isDebugging():
print '(ipodsync) Seems like your python-gpod is out-of-date.'
pass
def add_episode_from_channel( self, channel, episode):
@ -215,12 +219,14 @@ class gPodder_iPodSync(object):
track_length = 0 # hmm.. better do something else?!
track = gpod.itdb_track_new()
self.set_podcast_flags( track)
track.title = str(episode.title)
if channel.is_music_channel:
track.artist = str(channel.title)
else:
track.artist = 'gPodder podcast'
self.set_podcast_flags( track)
track.title = str(episode.title)
track.album = str(channel.title)
track.tracklen = track_length
track.filetype = 'mp3' # huh?! harcoded?! well, well :) FIXME, i'd say

View File

@ -96,9 +96,9 @@ class podcastChannel(ListType):
def get_localdb_channel( self):
ch = None
locdb_reader = readLocalDB()
locdb_reader.parseXML( self.index_file)
try:
locdb_reader = readLocalDB()
locdb_reader.parseXML( self.index_file)
return locdb_reader.channel
except:
return podcastChannel( self.url, self.title, self.link, self.description)