[ted] Restrict info regex (closes #21631)
authorSergey M․ <dstftw@gmail.com>
Wed, 3 Jul 2019 19:04:23 +0000 (02:04 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 3 Jul 2019 19:04:23 +0000 (02:04 +0700)
youtube_dl/extractor/ted.py

index 9b60cc462646da506f490ee1037d6dcf4d47fcbe..db5a4f44e6b9be254729256fc741d6f3eb3693f7 100644 (file)
@@ -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)