mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-11 11:27:16 +08:00
Document and move test
This commit is contained in:
parent
913bfc8c87
commit
8233347613
@ -15,19 +15,6 @@ from ..utils import (
|
|||||||
class RuutuIE(InfoExtractor):
|
class RuutuIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:www\.)?(?:ruutu|supla)\.fi/(?:video|supla)/(?P<id>\d+)'
|
_VALID_URL = r'https?://(?:www\.)?(?:ruutu|supla)\.fi/(?:video|supla)/(?P<id>\d+)'
|
||||||
_TESTS = [
|
_TESTS = [
|
||||||
{
|
|
||||||
'url': 'http://www.ruutu.fi/video/3193728',
|
|
||||||
'md5': '285a06ce136bc4fdb4d48b02bf3ce5f6',
|
|
||||||
'info_dict': {
|
|
||||||
'id': '3193728',
|
|
||||||
'ext': 'mp4',
|
|
||||||
'title': 'Poliisit - Kausi 10 - Jakso 11',
|
|
||||||
'description': 'md5:5154e593a0a138baeeb1caaabcbe13cb',
|
|
||||||
'thumbnail': r're:^https?://.*\.jpg$',
|
|
||||||
'duration': 1283,
|
|
||||||
'age_limit': 0,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
'url': 'http://www.ruutu.fi/video/2058907',
|
'url': 'http://www.ruutu.fi/video/2058907',
|
||||||
'md5': 'ab2093f39be1ca8581963451b3c0234f',
|
'md5': 'ab2093f39be1ca8581963451b3c0234f',
|
||||||
@ -66,6 +53,22 @@ class RuutuIE(InfoExtractor):
|
|||||||
'age_limit': 0,
|
'age_limit': 0,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
# Episode where <SourceFile> is "NOT-USED", but has other
|
||||||
|
# downloadable sources available.
|
||||||
|
{
|
||||||
|
'url': 'http://www.ruutu.fi/video/3193728',
|
||||||
|
'md5': '285a06ce136bc4fdb4d48b02bf3ce5f6',
|
||||||
|
'info_dict': {
|
||||||
|
'id': '3193728',
|
||||||
|
'ext': 'mp4',
|
||||||
|
'title': 'Poliisit - Kausi 10 - Jakso 11',
|
||||||
|
'description': 'md5:5154e593a0a138baeeb1caaabcbe13cb',
|
||||||
|
'thumbnail': r're:^https?://.*\.jpg$',
|
||||||
|
'duration': 1283,
|
||||||
|
'age_limit': 0,
|
||||||
|
},
|
||||||
|
'only_matching': True,
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user