youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit a90a6b54ee5ceb6002f4ebd73d62c65cc00484d9
parent 3cc0d0b8299308958bfe8b4c42c739505df27f50
Author: Sergey M․ <dstftw@gmail.com>
Date:   Wed,  2 May 2018 20:43:34 +0700

[watchbox] Fix extraction (closes #16356)

Diffstat:
Myoutube_dl/extractor/watchbox.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 {}