aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-05-02 20:43:34 +0700
committerSergey M․ <dstftw@gmail.com>2018-05-02 20:43:34 +0700
commita90a6b54ee5ceb6002f4ebd73d62c65cc00484d9 (patch)
tree51d5709f1f295e341ab04838de77272a51ccbecd /youtube_dl
parent3cc0d0b8299308958bfe8b4c42c739505df27f50 (diff)
[watchbox] Fix extraction (closes #16356)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/watchbox.py2
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 {}