A feature-rich command-line audio/video downloader
[ted] Restrict info regex (closes #21631)
Sergey M․cdb7c7d147b1
diff --git a/youtube_dl/extractor/ted.py b/youtube_dl/extractor/ted.pyindex 9b60cc4626..db5a4f44e6 100644--- 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)