summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2019-07-04 02:04:23 +0700
committerSergey M․ <dstftw@gmail.com>2019-07-04 02:04:23 +0700
commitcdb7c7d147b19f79512d541465cb5be9a54c7950 (patch)
tree580bdabb071133d4f74773ad02b6c011bc7c2afb
parent2da4316e48475c344be862149f744c3a8a1ab2f1 (diff)
downloadyoutube-dl-cdb7c7d147b19f79512d541465cb5be9a54c7950.tar.gz
youtube-dl-cdb7c7d147b19f79512d541465cb5be9a54c7950.tar.xz
youtube-dl-cdb7c7d147b19f79512d541465cb5be9a54c7950.zip
[ted] Restrict info regex (closes #21631)
-rw-r--r--youtube_dl/extractor/ted.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/ted.py b/youtube_dl/extractor/ted.py
index 9b60cc462..db5a4f44e 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)