Skip to content

Commit

Permalink
Revert "[ted] Restrict info regex (closes #21631)"
Browse files Browse the repository at this point in the history
This reverts commit 515ab40.
  • Loading branch information
Lamieur committed Apr 20, 2020
1 parent b7f31cc commit 4fd34e6
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 4fd34e6

Please sign in to comment.