Browse Source

[watchbox] Fix extraction (closes #16356)

master
Sergey M․ 6 years ago
parent
commit
a90a6b54ee
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/watchbox.py

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

Loading…
Cancel
Save