aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/common.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-10-01 22:54:54 +0600
committerSergey M․ <dstftw@gmail.com>2015-10-01 22:54:54 +0600
commitc78e48177c72baa0c985c4d47f95e6edc6ec33dc (patch)
tree9f5c2958ecc9a66dfa5e8c56b364cd58bf4ea809 /youtube_dl/extractor/common.py
parent6edaa0e25b880be5d1ea513d9d907c91e18a8347 (diff)
[extractor/common] Check validity of direct URLs
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r--youtube_dl/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index b86d06523..b928e24be 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -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,