1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[ted] Restrict info regex (closes #21631)

This commit is contained in:
Sergey M․ 2019-07-04 02:04:23 +07:00
parent 2da4316e48
commit cdb7c7d147
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View 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)