]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[watchbox] Fix extraction (closes #16356)
authorSergey M․ <dstftw@gmail.com>
Wed, 2 May 2018 13:43:34 +0000 (20:43 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 2 May 2018 13:43:34 +0000 (20:43 +0700)
youtube_dl/extractor/watchbox.py

index b382338fabfeb4b2698712648a1ba7219e966866..be0bcba15380041ca1698c1687497bffc524b4ef 100644 (file)
@@ -69,7 +69,7 @@ class WatchBoxIE(InfoExtractor):
 
         source = self._parse_json(
             self._search_regex(
-                r'(?s)source\s*:\s*({.+?})\s*,\s*\n', webpage, 'source',
+                r'(?s)source["\']?\s*:\s*({.+?})\s*[,}]', webpage, 'source',
                 default='{}'),
             video_id, transform_source=js_to_json, fatal=False) or {}