From d42b7b6c5e927a8e4e82be96a551b5054e445974 Mon Sep 17 00:00:00 2001 From: df Date: Mon, 21 Jun 2021 12:52:33 +0100 Subject: [PATCH] Restore coding style deprecated by @dstftw --- youtube_dl/extractor/redtube.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/youtube_dl/extractor/redtube.py b/youtube_dl/extractor/redtube.py index 6871e1d3a..138f333b4 100644 --- a/youtube_dl/extractor/redtube.py +++ b/youtube_dl/extractor/redtube.py @@ -104,13 +104,13 @@ class RedTubeIE(InfoExtractor): 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'', webpage, 'video URL')