mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-23 14:57:51 +08:00
I have no idea how to write a test that will succeed if extracotr does not match the url.
This commit is contained in:
parent
b7e705c2cd
commit
a5dee01343
@ -262,6 +262,9 @@ class CrunchyrollIE(CrunchyrollBaseIE):
|
|||||||
# Just test metadata extraction
|
# Just test metadata extraction
|
||||||
'skip_download': True,
|
'skip_download': True,
|
||||||
},
|
},
|
||||||
|
}, {
|
||||||
|
'url': 'http://www.crunchyroll.com/media-723735',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
_FORMAT_IDS = {
|
_FORMAT_IDS = {
|
||||||
@ -603,6 +606,13 @@ class CrunchyrollShowPlaylistIE(CrunchyrollBaseIE):
|
|||||||
'url': 'http://www.crunchyroll.com/ladies-versus-butlers?skip_wall=1',
|
'url': 'http://www.crunchyroll.com/ladies-versus-butlers?skip_wall=1',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
# Is possible make test, that try URL, and return: This URL is invalid for this extractor
|
||||||
|
'''
|
||||||
|
, {
|
||||||
|
'url': 'http://www.crunchyroll.com/media-723735',
|
||||||
|
'invalid_url': True,
|
||||||
|
}
|
||||||
|
'''
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
show_id = self._match_id(url)
|
show_id = self._match_id(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user