projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
233d37f
)
[ted] Fix type_watch links extraction
author
Sergey M․
<dstftw@gmail.com>
Wed, 3 Dec 2014 15:17:11 +0000
(21:17 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 3 Dec 2014 15:17:11 +0000
(21:17 +0600)
youtube_dl/extractor/ted.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ted.py
b/youtube_dl/extractor/ted.py
index f8a87afdaf4d27c59b4b29491569b243331b2322..72160503ccd52e2f84e843184fbdf0e92080a19f 100644
(file)
--- a/
youtube_dl/extractor/ted.py
+++ b/
youtube_dl/extractor/ted.py
@@
-199,8
+199,9
@@
class TEDIE(SubtitlesInfoExtractor):
webpage = self._download_webpage(url, name)
config_json = self._html_search_regex(
- r"data-config='([^']+)", webpage, 'config')
- config = json.loads(config_json)
+ r'"pages\.jwplayer"\s*,\s*({.+?})\s*\)\s*</script>',
+ webpage, 'config')
+ config = json.loads(config_json)['config']
video_url = config['video']['url']
thumbnail = config.get('image', {}).get('url')