projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[nowness] update tests
[youtube-dl]
/
youtube_dl
/
extractor
/
wimp.py
diff --git
a/youtube_dl/extractor/wimp.py
b/youtube_dl/extractor/wimp.py
index 022a3d1b578420a54be5ba2647d1ec8aed464018..828c03dc38c4d4d4668f6dfb66e4cc29c51fd7e5 100644
(file)
--- a/
youtube_dl/extractor/wimp.py
+++ b/
youtube_dl/extractor/wimp.py
@@
-5,7
+5,7
@@
from .youtube import YoutubeIE
class WimpIE(InfoExtractor):
class WimpIE(InfoExtractor):
- _VALID_URL = r'http://(?:www\.)?wimp\.com/(?P<id>[^/]+)'
+ _VALID_URL = r'http
s?
://(?:www\.)?wimp\.com/(?P<id>[^/]+)'
_TESTS = [{
'url': 'http://www.wimp.com/maruexhausted/',
'md5': 'ee21217ffd66d058e8b16be340b74883',
_TESTS = [{
'url': 'http://www.wimp.com/maruexhausted/',
'md5': 'ee21217ffd66d058e8b16be340b74883',
@@
-20,7
+20,7
@@
class WimpIE(InfoExtractor):
'md5': '4e2986c793694b55b37cf92521d12bb4',
'info_dict': {
'id': 'clowncar',
'md5': '4e2986c793694b55b37cf92521d12bb4',
'info_dict': {
'id': 'clowncar',
- 'ext': '
mp4
',
+ 'ext': '
webm
',
'title': 'It\'s like a clown car.',
'description': 'md5:0e56db1370a6e49c5c1d19124c0d2fb2',
},
'title': 'It\'s like a clown car.',
'description': 'md5:0e56db1370a6e49c5c1d19124c0d2fb2',
},
@@
-42,7
+42,7
@@
class WimpIE(InfoExtractor):
}
video_url = self._search_regex(
}
video_url = self._search_regex(
- r'<video[^>]+>\s*<source
src=(["\'])(?P<url>.+?)\1',
+ r'<video[^>]+>\s*<source
[^>]+
src=(["\'])(?P<url>.+?)\1',
webpage, 'video URL', group='url')
return {
webpage, 'video URL', group='url')
return {