fix bug with new non-enclosure episodes

git-svn-id: svn://svn.berlios.de/gpodder/trunk@310 b0d088ad-0a06-0410-aad2-9ed5178a7e87
This commit is contained in:
Thomas Perl 2007-04-06 17:11:11 +00:00
parent 58eb3d0d9a
commit cbbeb78884
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,12 @@
Fri, 6 Apr 2007 19:08:29 +0200 <thp@perli.net>
* src/gpodder/libpodcasts.py: Remove checking of valid url,
because this is now done in librssreader
* src/gpodder/librssreader.py: Only add podcastItem if it has
a valid url (i.e. the "enclosure" tag exists for that item)
thanks to Gerrit Sangel (z0idberg gmx.de) who discovered that
bug when gPodder was looking for new items in the (unfiltered)
episode list
Thu, 5 Apr 2007 09:46:36 +0200 <thp@perli.net>
* README: ** gPodder 0.9.1 released **
* doc/man/gpodder.1: Generated manpage for the 0.9.1 release

View File

@ -223,7 +223,7 @@ class podcastChannel(ListType):
added_urls = []
for item in [] + self + self.localdb_channel:
if item.url and item.url not in added_urls:
if item.url not in added_urls:
episodes.append( item)
added_urls.append( item.url)

View File

@ -132,7 +132,8 @@ class rssReader( DefaultHandler, ErrorHandler):
if name == "pubDate":
self.current_item.pubDate = self.current_element_data
if name == "item":
self.channel.append( self.current_item)
if self.current_item.url:
self.channel.append( self.current_item)
self.current_item = None
def characters( self, ch):