Skip episode media with 'application/*' mime type, if there is video or audio

This commit is contained in:
Teemu Ikonen 2021-01-10 23:06:26 +02:00
parent 67b0dfcc25
commit 031f8e4350
1 changed files with 2 additions and 2 deletions

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'])