##// END OF EJS Templates
Download youtube as videos, not always by links as html content
neko259 -
r1685:0fb0af80 default
parent child Browse files
Show More
@@ -88,7 +88,7 b' class NothingDownloader(Downloader):'
88 88 def handles(url: str) -> bool:
89 89 response_head = requests.head(url, verify=False)
90 90 content_type = response_head.headers[HEADER_CONTENT_TYPE].split(';')[0]
91 return content_type in TYPE_URL_ONLY
91 return content_type in TYPE_URL_ONLY and not YOUTUBE_URL.match(url)
92 92
93 93 @staticmethod
94 94 def download(url: str):
General Comments 0
You need to be logged in to leave comments. Login now