Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Skip images in Media RSS content if audio/video available (bug 1444)

Merged from the 'tres' branch.
  • Loading branch information...
commit 07d13548e851e4dd2797b2a7f23ae4b5c3d1c137 1 parent 73ca508
Thomas Perl authored October 04, 2011

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. 6  src/gpodder/model.py
6  src/gpodder/model.py
@@ -769,8 +769,10 @@ def calculate_preference_value(enclosure):
769 769
             if '/' not in episode.mimetype:
770 770
                 continue
771 771
 
772  
-            # XXX: Does Media RSS content also have images? If so, we
773  
-            # might want to skip these too (see above for enclosures).
  772
+            # Skip images in Media RSS if we have audio/video (bug 1444)
  773
+            if episode.mimetype.startswith('image/') and \
  774
+                    (audio_available or video_available):
  775
+                continue
774 776
 
775 777
             episode.url = util.normalize_feed_url(m.get('url', ''))
776 778
             if not episode.url:

0 notes on commit 07d1354

Please sign in to comment.
Something went wrong with that request. Please try again.