Fix a regression for custom feeds (e.g. Soundcloud)

Refactoring introduced a bug where new episodes were
never found on custom feeds such as Soundcloud.
This commit is contained in:
Thomas Perl 2010-04-29 13:47:19 +02:00
parent 5756e9791c
commit 33a6930fb3
1 changed files with 4 additions and 0 deletions

View File

@ -176,6 +176,10 @@ class PodcastChannel(PodcastModelObject):
self.save()
guids = [episode.guid for episode in self.get_all_episodes()]
# Insert newly-found episodes into the database
custom_feed.get_new_episodes(self, guids)
self.save()
self.db.purge(max_episodes, self.id)