]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[joj] Fix extraction (closes #18280)
authorAlexander Seiler <seileralex@gmail.com>
Sat, 24 Nov 2018 15:14:27 +0000 (16:14 +0100)
committerSergey M <dstftw@gmail.com>
Sat, 24 Nov 2018 15:14:27 +0000 (22:14 +0700)
youtube_dl/extractor/joj.py

index d9f8dbfd240db90fac3ddcfd23dd76d095cef52a..62b28e9809856abaca23c4690c4670cacc96965a 100644 (file)
@@ -61,7 +61,7 @@ class JojIE(InfoExtractor):
 \r
         bitrates = self._parse_json(\r
             self._search_regex(\r
-                r'(?s)bitrates\s*=\s*({.+?});', webpage, 'bitrates',\r
+                r'(?s)(?:src|bitrates)\s*=\s*({.+?});', webpage, 'bitrates',\r
                 default='{}'),\r
             video_id, transform_source=js_to_json, fatal=False)\r
 \r