From: pishposhmcgee Date: Thu, 25 Jul 2013 02:51:08 +0000 (-0500) Subject: changed video_url regex X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=12ef6aefa8ef5b8959a1b51788dd42cc33a4fe5c;p=youtube-dl changed video_url regex Some older videos contain an extra properties such as 'embed' before 'type'. --- diff --git a/youtube_dl/extractor/teamcoco.py b/youtube_dl/extractor/teamcoco.py index ec92e589a..c910110ca 100644 --- a/youtube_dl/extractor/teamcoco.py +++ b/youtube_dl/extractor/teamcoco.py @@ -33,7 +33,7 @@ class TeamcocoIE(InfoExtractor): data_url = 'http://teamcoco.com/cvp/2.0/%s.xml' % video_id data = self._download_webpage(data_url, video_id, 'Downloading data webpage') - video_url = self._html_search_regex(r'(.*?)', + video_url = self._html_search_regex(r']*type="high".*?>(.*?)', data, u'video URL') return [{