projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b2dfae
)
[screenwavemedia] Check formats' URLs
author
Sergey M․
<dstftw@gmail.com>
Sun, 28 Feb 2016 15:46:36 +0000
(21:46 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 28 Feb 2016 15:46:36 +0000
(21:46 +0600)
youtube_dl/extractor/screenwavemedia.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/screenwavemedia.py
b/youtube_dl/extractor/screenwavemedia.py
index 8e77788aedaf8d8bb8a1c438fdbdec802f38ce63..44b0bbee68953a199c67e420fe1928048be5f2cf 100644
(file)
--- a/
youtube_dl/extractor/screenwavemedia.py
+++ b/
youtube_dl/extractor/screenwavemedia.py
@@
-76,9
+76,11
@@
class ScreenwaveMediaIE(InfoExtractor):
if source.get('type') == 'hls':
formats.extend(self._extract_m3u8_formats(file_, video_id, ext='mp4'))
else:
- format_label = source.get('label')
format_id = self._search_regex(
r'_(.+?)\.[^.]+$', file_, 'format id', default=None)
+ if not self._is_valid_url(file_, video_id, format_id or 'video'):
+ continue
+ format_label = source.get('label')
height = int_or_none(self._search_regex(
r'^(\d+)[pP]', format_label, 'height', default=None))
formats.append({