mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[extractor/common] Check validity of direct URLs
This commit is contained in:
parent
6edaa0e25b
commit
c78e48177c
1 changed files with 1 additions and 1 deletions
|
@ -1145,7 +1145,7 @@ def _parse_smil_formats(self, smil, smil_url, video_id, namespace=None, f4m_para
|
||||||
formats.extend(self._extract_f4m_formats(f4m_url, video_id, f4m_id='hds'))
|
formats.extend(self._extract_f4m_formats(f4m_url, video_id, f4m_id='hds'))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if src_url.startswith('http'):
|
if src_url.startswith('http') and self._is_valid_url(src, video_id):
|
||||||
http_count += 1
|
http_count += 1
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': src_url,
|
'url': src_url,
|
||||||
|
|
Loading…
Reference in a new issue