projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fec2d97
)
[megavideoez] Add working test
author
Jeff Buchbinder
<jeff@ourexchange.net>
Fri, 17 Apr 2015 15:25:01 +0000
(11:25 -0400)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 18 Apr 2015 22:06:45 +0000
(
04:06
+0600)
youtube_dl/extractor/megavideozeu.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/megavideozeu.py
b/youtube_dl/extractor/megavideozeu.py
index e77b5f7346ce2df2e55bdf18baa50733702ae3dc..ee26b0f2e620fe8fe3421eea960904b6909f8e03 100644
(file)
--- a/
youtube_dl/extractor/megavideozeu.py
+++ b/
youtube_dl/extractor/megavideozeu.py
@@
-11,6
+11,18
@@
from ..utils import (
class MegavideozeuIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?megavideoz\.eu/video/(?P<id>.*)(?:.*)'
class MegavideozeuIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?megavideoz\.eu/video/(?P<id>.*)(?:.*)'
+ _TESTS = [
+ {
+ 'url': 'http://megavideoz.eu/video/WM6UB919XMXH/SMPTE-Universal-Film-Leader',
+ 'info_dict': {
+ 'id': '48723',
+ 'ext': 'mp4',
+ 'duration': '10',
+ 'title': 'SMPTE Universal Film Leader',
+ }
+ }
+ ]
+
def _real_extract(self, url):
tmp_video_id = self._match_id(url)
def _real_extract(self, url):
tmp_video_id = self._match_id(url)
@@
-29,7
+41,7
@@
class MegavideozeuIE(InfoExtractor):
title = self._html_search_regex(
r'<title><!\[CDATA\[([^\]]+)', configpage, 'title')
duration = int_or_none(self._html_search_regex(
title = self._html_search_regex(
r'<title><!\[CDATA\[([^\]]+)', configpage, 'title')
duration = int_or_none(self._html_search_regex(
- r'<duration>([0-9]+)', configpage, 'duration', fatal=False))
+ r'<duration>([0-9
\.
]+)', configpage, 'duration', fatal=False))
return {
'id': video_id,
return {
'id': video_id,