aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorpishposhmcgee <pishposh.mcgee@gmail.com>2013-07-24 21:51:08 -0500
committerpishposhmcgee <pishposh.mcgee@gmail.com>2013-07-24 21:51:08 -0500
commit12ef6aefa8ef5b8959a1b51788dd42cc33a4fe5c (patch)
tree619e200b06b8e127ade8113a8019cbbac26657bd /youtube_dl
parent755eb0320ed127fe2f24af13343ae587a63daf22 (diff)
changed video_url regex
Some older videos contain an extra properties such as 'embed' before 'type'.
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/teamcoco.py2
1 files changed, 1 insertions, 1 deletions
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'<file type="high".*?>(.*?)</file>',
+ video_url = self._html_search_regex(r'<file [^>]*type="high".*?>(.*?)</file>',
data, u'video URL')
return [{