Skip to content

Commit

Permalink
Skip images in Media RSS content if audio/video available (bug 1444)
Browse files Browse the repository at this point in the history
  • Loading branch information
thp committed Oct 4, 2011
1 parent 346c582 commit f87d88a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gpodder/model.py
Expand Up @@ -233,8 +233,10 @@ def calculate_preference_value(enclosure):
if '/' not in episode.mime_type:
continue

# XXX: Does Media RSS content also have images? If so, we
# might want to skip these too (see above for enclosures).
# Skip images in Media RSS if we have audio/video (bug 1444)
if episode.mime_type.startswith('image/') and \
(audio_available or video_available):
continue

episode.url = util.normalize_feed_url(m.get('url', ''))
if not episode.url:
Expand Down

0 comments on commit f87d88a

Please sign in to comment.