mirror of https://github.com/yt-dlp/yt-dlp.git
[screenwavemedia] Check formats' URLs
This commit is contained in:
parent
2b2dfae83e
commit
6dae56384a
|
@ -76,9 +76,11 @@ class ScreenwaveMediaIE(InfoExtractor):
|
||||||
if source.get('type') == 'hls':
|
if source.get('type') == 'hls':
|
||||||
formats.extend(self._extract_m3u8_formats(file_, video_id, ext='mp4'))
|
formats.extend(self._extract_m3u8_formats(file_, video_id, ext='mp4'))
|
||||||
else:
|
else:
|
||||||
format_label = source.get('label')
|
|
||||||
format_id = self._search_regex(
|
format_id = self._search_regex(
|
||||||
r'_(.+?)\.[^.]+$', file_, 'format id', default=None)
|
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(
|
height = int_or_none(self._search_regex(
|
||||||
r'^(\d+)[pP]', format_label, 'height', default=None))
|
r'^(\d+)[pP]', format_label, 'height', default=None))
|
||||||
formats.append({
|
formats.append({
|
||||||
|
|
Loading…
Reference in New Issue