commit cdb7c7d147b19f79512d541465cb5be9a54c7950
parent 2da4316e48475c344be862149f744c3a8a1ab2f1
Author: Sergey M․ <dstftw@gmail.com>
Date:   Thu,  4 Jul 2019 02:04:23 +0700

[ted] Restrict info regex (closes #21631)

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

diff --git a/youtube_dl/extractor/ted.py b/youtube_dl/extractor/ted.py @@ -133,7 +133,7 @@ class TEDIE(InfoExtractor): def _extract_info(self, webpage): info_json = self._search_regex( - r'(?s)q\(\s*"\w+.init"\s*,\s*({.+})\)\s*</script>', + r'(?s)q\(\s*"\w+.init"\s*,\s*({.+?})\)\s*</script>', webpage, 'info json') return json.loads(info_json)