1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-22 17:06:08 +08:00

[extractor/common] Check validity of direct URLs

This commit is contained in:
Sergey M․ 2015-10-01 22:54:54 +06:00
parent 6edaa0e25b
commit c78e48177c

View File

@ -1145,7 +1145,7 @@ class InfoExtractor(object):
formats.extend(self._extract_f4m_formats(f4m_url, video_id, f4m_id='hds'))
continue
if src_url.startswith('http'):
if src_url.startswith('http') and self._is_valid_url(src, video_id):
http_count += 1
formats.append({
'url': src_url,