mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-06 21:17:06 +01:00
[ted] Restrict info regex (closes #21631)
This commit is contained in:
parent
2da4316e48
commit
cdb7c7d147
@ -133,7 +133,7 @@ class TEDIE(InfoExtractor):
|
|||||||
|
|
||||||
def _extract_info(self, webpage):
|
def _extract_info(self, webpage):
|
||||||
info_json = self._search_regex(
|
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')
|
webpage, 'info json')
|
||||||
return json.loads(info_json)
|
return json.loads(info_json)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user