diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-02-28 21:46:36 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-02-28 21:46:36 +0600 |
commit | 6dae56384a3a50f832b647f798a4b4bbd770448f (patch) | |
tree | 434f3eeed6f9b7124682b5ef5e54cdc9f3c544fb /youtube_dl/extractor/screenwavemedia.py | |
parent | 2b2dfae83ef80f86e9983ded3c4514b58b1eed60 (diff) |
[screenwavemedia] Check formats' URLs
Diffstat (limited to 'youtube_dl/extractor/screenwavemedia.py')
-rw-r--r-- | youtube_dl/extractor/screenwavemedia.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/screenwavemedia.py b/youtube_dl/extractor/screenwavemedia.py index 8e77788ae..44b0bbee6 100644 --- 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({ |