projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cc0d0b
)
[watchbox] Fix extraction (closes #16356)
author
Sergey M․
<dstftw@gmail.com>
Wed, 2 May 2018 13:43:34 +0000
(20:43 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 2 May 2018 13:43:34 +0000
(20:43 +0700)
youtube_dl/extractor/watchbox.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/watchbox.py
b/youtube_dl/extractor/watchbox.py
index b382338fabfeb4b2698712648a1ba7219e966866..be0bcba15380041ca1698c1687497bffc524b4ef 100644
(file)
--- 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 {}