Merge pull request #1347 from tpikonen/ytdl-no-audio-video-files

Don't try to download media files with youtube-dl extension
This commit is contained in:
auouymous 2022-08-02 14:54:42 -07:00 committed by GitHub
commit c8e4f20506
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -426,6 +426,8 @@ class gPodderYoutubeDL(download.CustomDownloader):
"""
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)