Fix audio/video detection for Linux Outlaws

This commit is contained in:
Thomas Perl 2011-04-04 18:00:14 +02:00
parent dc9ddb9ac6
commit 4ca74bb5e2
1 changed files with 6 additions and 0 deletions

View File

@ -206,6 +206,12 @@ class PodcastEpisode(PodcastModelObject):
(audio_available or video_available):
continue
# If we have audio or video available later on, skip
# 'application/octet-stream' data types (fixes Linux Outlaws)
if episode.mime_type == 'application/octet-stream' and \
(audio_available or video_available):
continue
episode.url = util.normalize_feed_url(e.get('href', ''))
if not episode.url:
continue