mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-14 23:32:33 +00:00
[vimeo] Move test case to where it belongs
This commit is contained in:
parent
60ac04e57c
commit
d36d3f420c
1 changed files with 15 additions and 16 deletions
|
@ -151,19 +151,6 @@ class VimeoIE(VimeoBaseInfoExtractor, SubtitlesInfoExtractor):
|
||||||
'duration': 62,
|
'duration': 62,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
'note': 'video player needs Referer',
|
|
||||||
'url': 'http://vimeo.com/user22258446/review/91613211/13f927e053',
|
|
||||||
'md5': '6295fdab8f4bf6a002d058b2c6dce276',
|
|
||||||
'info_dict': {
|
|
||||||
'id': '91613211',
|
|
||||||
'ext': 'mp4',
|
|
||||||
'title': 'Death by dogma versus assembling agile - Sander Hoogendoorn',
|
|
||||||
'uploader': 'DevWeek Events',
|
|
||||||
'duration': 2773,
|
|
||||||
'thumbnail': 're:^https?://.*\.jpg$',
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
@ -474,8 +461,8 @@ class VimeoGroupsIE(VimeoAlbumIE):
|
||||||
class VimeoReviewIE(InfoExtractor):
|
class VimeoReviewIE(InfoExtractor):
|
||||||
IE_NAME = 'vimeo:review'
|
IE_NAME = 'vimeo:review'
|
||||||
IE_DESC = 'Review pages on vimeo'
|
IE_DESC = 'Review pages on vimeo'
|
||||||
_VALID_URL = r'(?:https?://)?vimeo\.com/[^/]+/review/(?P<id>[^/]+)'
|
_VALID_URL = r'https?://vimeo\.com/[^/]+/review/(?P<id>[^/]+)'
|
||||||
_TEST = {
|
_TESTS = [{
|
||||||
'url': 'https://vimeo.com/user21297594/review/75524534/3c257a1b5d',
|
'url': 'https://vimeo.com/user21297594/review/75524534/3c257a1b5d',
|
||||||
'file': '75524534.mp4',
|
'file': '75524534.mp4',
|
||||||
'md5': 'c507a72f780cacc12b2248bb4006d253',
|
'md5': 'c507a72f780cacc12b2248bb4006d253',
|
||||||
|
@ -483,7 +470,19 @@ class VimeoReviewIE(InfoExtractor):
|
||||||
'title': "DICK HARDWICK 'Comedian'",
|
'title': "DICK HARDWICK 'Comedian'",
|
||||||
'uploader': 'Richard Hardwick',
|
'uploader': 'Richard Hardwick',
|
||||||
}
|
}
|
||||||
}
|
}, {
|
||||||
|
'note': 'video player needs Referer',
|
||||||
|
'url': 'http://vimeo.com/user22258446/review/91613211/13f927e053',
|
||||||
|
'md5': '6295fdab8f4bf6a002d058b2c6dce276',
|
||||||
|
'info_dict': {
|
||||||
|
'id': '91613211',
|
||||||
|
'ext': 'mp4',
|
||||||
|
'title': 'Death by dogma versus assembling agile - Sander Hoogendoorn',
|
||||||
|
'uploader': 'DevWeek Events',
|
||||||
|
'duration': 2773,
|
||||||
|
'thumbnail': 're:^https?://.*\.jpg$',
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
mobj = re.match(self._VALID_URL, url)
|
mobj = re.match(self._VALID_URL, url)
|
||||||
|
|
Loading…
Reference in a new issue