]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/watchbox.py
Initiate new release.
[youtubedl] / 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 {}