mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-02 13:20:22 +00:00
[watchbox] Fix extraction (closes #16356)
This commit is contained in:
parent
3cc0d0b829
commit
a90a6b54ee
@ -69,7 +69,7 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
source = self._parse_json(
|
source = self._parse_json(
|
||||||
self._search_regex(
|
self._search_regex(
|
||||||
r'(?s)source\s*:\s*({.+?})\s*,\s*\n', webpage, 'source',
|
r'(?s)source["\']?\s*:\s*({.+?})\s*[,}]', webpage, 'source',
|
||||||
default='{}'),
|
default='{}'),
|
||||||
video_id, transform_source=js_to_json, fatal=False) or {}
|
video_id, transform_source=js_to_json, fatal=False) or {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user