Skip to content

Commit

Permalink
[ted] Restrict info regex (closes #21631)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw authored and Lamieur committed Aug 3, 2019
1 parent 15b14d3 commit 515ab40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/ted.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 515ab40

Please sign in to comment.