diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-05-02 20:43:34 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-05-02 20:43:34 +0700 |
commit | a90a6b54ee5ceb6002f4ebd73d62c65cc00484d9 (patch) | |
tree | 51d5709f1f295e341ab04838de77272a51ccbecd /youtube_dl | |
parent | 3cc0d0b8299308958bfe8b4c42c739505df27f50 (diff) |
[watchbox] Fix extraction (closes #16356)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/watchbox.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/watchbox.py b/youtube_dl/extractor/watchbox.py index b382338fa..be0bcba15 100644 --- a/youtube_dl/extractor/watchbox.py +++ b/youtube_dl/extractor/watchbox.py @@ -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 {} |