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
Merged from the 'tres' branch.
  • Loading branch information
thp committed Oct 4, 2011
1 parent 73ca508 commit 07d1354
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gpodder/model.py
Expand Up @@ -769,8 +769,10 @@ def calculate_preference_value(enclosure):
if '/' not in episode.mimetype:
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.mimetype.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 07d1354

Please sign in to comment.