mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-18 08:16:10 +00:00
Restore coding style deprecated by @dstftw
This commit is contained in:
parent
3e49222a74
commit
d42b7b6c5e
1 changed files with 7 additions and 7 deletions
|
@ -104,13 +104,13 @@ class RedTubeIE(InfoExtractor):
|
||||||
format_url, video_id, 'mp4',
|
format_url, video_id, 'mp4',
|
||||||
entry_protocol='m3u8_native', m3u8_id=format_id or 'hls',
|
entry_protocol='m3u8_native', m3u8_id=format_id or 'hls',
|
||||||
fatal=False))
|
fatal=False))
|
||||||
continue
|
else:
|
||||||
format_id = media.get('quality')
|
format_id = media.get('quality')
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': format_url,
|
'url': format_url,
|
||||||
'format_id': format_id,
|
'format_id': format_id,
|
||||||
'height': int_or_none(format_id),
|
'height': int_or_none(format_id),
|
||||||
})
|
})
|
||||||
if not formats:
|
if not formats:
|
||||||
video_url = self._html_search_regex(
|
video_url = self._html_search_regex(
|
||||||
r'<source src="(.+?)" type="video/mp4">', webpage, 'video URL')
|
r'<source src="(.+?)" type="video/mp4">', webpage, 'video URL')
|
||||||
|
|
Loading…
Reference in a new issue