projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
755eb03
)
changed video_url regex
author
pishposhmcgee
<pishposh.mcgee@gmail.com>
Thu, 25 Jul 2013 02:51:08 +0000
(21:51 -0500)
committer
pishposhmcgee
<pishposh.mcgee@gmail.com>
Thu, 25 Jul 2013 02:51:08 +0000
(21:51 -0500)
Some older videos contain an extra properties such as 'embed' before 'type'.
youtube_dl/extractor/teamcoco.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/teamcoco.py
b/youtube_dl/extractor/teamcoco.py
index ec92e589a52c12cb3f88bc33861ade9752b779bd..c910110ca9775d9ad03011238aacdc3c9ef4dae1 100644
(file)
--- 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 [{