Skip to content

Commit

Permalink
Merge pull request gpodder#1347 from tpikonen/ytdl-no-audio-video-files
Browse files Browse the repository at this point in the history
Don't try to download media files with youtube-dl extension
  • Loading branch information
auouymous authored Aug 2, 2022
2 parents ef0cb1a + 123a550 commit c8e4f20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions share/gpodder/extensions/youtube-dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@ def custom_downloader(self, unused_config, episode):
"""
if not self.force and not self.my_config.manage_downloads:
return None
if episode.mime_type.startswith(('audio/', 'video/')):
return None
if self.is_supported_url(episode.url):
return YoutubeCustomDownload(self, episode.url, episode)

Expand Down

0 comments on commit c8e4f20

Please sign in to comment.