projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2da4316
)
[ted] Restrict info regex (closes #21631)
author
Sergey M․
<dstftw@gmail.com>
Wed, 3 Jul 2019 19:04:23 +0000
(
02:04
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 3 Jul 2019 19:04:23 +0000
(
02:04
+0700)
youtube_dl/extractor/ted.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ted.py
b/youtube_dl/extractor/ted.py
index 9b60cc462646da506f490ee1037d6dcf4d47fcbe..db5a4f44e6b9be254729256fc741d6f3eb3693f7 100644
(file)
--- a/
youtube_dl/extractor/ted.py
+++ b/
youtube_dl/extractor/ted.py
@@
-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)