Merge pull request #951 from tpikonen/skip-application

Skip episode media with 'application/*' mime type
This commit is contained in:
Eric Le Lay 2021-01-15 08:18:05 +01:00 committed by GitHub
commit 26296a085a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -300,8 +300,8 @@ class PodcastEpisode(PodcastModelObject):
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):
# all 'application/*' data types (fixes Linux Outlaws and peertube feeds)
if episode.mime_type.startswith('application/') and (audio_available or video_available):
continue
episode.url = util.normalize_feed_url(enclosure['url'])