Browse Source

[ted] Restrict info regex (closes #21631)

master
Sergey M․ 5 years ago
parent
commit
cdb7c7d147
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/ted.py

+ 1
- 1
youtube_dl/extractor/ted.py View File

@ -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…
Cancel
Save