Browse Source

changed video_url regex

Some older videos contain an extra properties such as 'embed' before 'type'.
master
pishposhmcgee 11 years ago
parent
commit
12ef6aefa8
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/teamcoco.py

2
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_url = 'http://teamcoco.com/cvp/2.0/%s.xml' % video_id
data = self._download_webpage(data_url, video_id, 'Downloading data webpage') 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') data, u'video URL')
return [{ return [{

Loading…
Cancel
Save