Skip to content

Commit

Permalink
Restore coding style deprecated by @dstftw
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkf committed Jun 21, 2021
1 parent 3e49222 commit d42b7b6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions youtube_dl/extractor/redtube.py
Expand Up @@ -104,13 +104,13 @@ def _real_extract(self, url):
format_url, video_id, 'mp4',
entry_protocol='m3u8_native', m3u8_id=format_id or 'hls',
fatal=False))
continue
format_id = media.get('quality')
formats.append({
'url': format_url,
'format_id': format_id,
'height': int_or_none(format_id),
})
else:
format_id = media.get('quality')
formats.append({
'url': format_url,
'format_id': format_id,
'height': int_or_none(format_id),
})
if not formats:
video_url = self._html_search_regex(
r'<source src="(.+?)" type="video/mp4">', webpage, 'video URL')
Expand Down

0 comments on commit d42b7b6

Please sign in to comment.