diff --git a/youtube_dl/extractor/redtube.py b/youtube_dl/extractor/redtube.py index ae63de70b..00bd95bdb 100644 --- a/youtube_dl/extractor/redtube.py +++ b/youtube_dl/extractor/redtube.py @@ -80,7 +80,7 @@ class RedTubeIE(InfoExtractor): mobj = re.search(r'mediaDefinition\s*:\s*(\[.+?\])', webpage) doc1 = webpage[mobj.start(1):] try: - x = json.loads(doc1) + json.loads(doc1) except json.JSONDecodeError as exc: doc1 = doc1[0:exc.pos] medias = self._parse_json(