youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit de9bd74bc2e06a6d5396151050fd1eeafdd54a33
parent 233d37fb6b420b01315c48488c84dc5b6e7aaea0
Author: Sergey M․ <dstftw@gmail.com>
Date:   Wed,  3 Dec 2014 21:17:11 +0600

[ted] Fix type_watch links extraction

Diffstat:
Myoutube_dl/extractor/ted.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 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')