1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-31 00:22:53 +08:00

[watchbox] Fix extraction (closes #16356)

This commit is contained in:
Sergey M․ 2018-05-02 20:43:34 +07:00
parent 3cc0d0b829
commit a90a6b54ee
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View 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 {}