From 12ef6aefa8ef5b8959a1b51788dd42cc33a4fe5c Mon Sep 17 00:00:00 2001 From: pishposhmcgee Date: Wed, 24 Jul 2013 21:51:08 -0500 Subject: [PATCH] changed video_url regex Some older videos contain an extra properties such as 'embed' before 'type'. --- youtube_dl/extractor/teamcoco.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 [{ -- 2.22.2