1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-23 12:02: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:
bato3 2018-07-28 01:26:40 +02:00
parent b7e705c2cd
commit a5dee01343

View File

@ -262,6 +262,9 @@ class CrunchyrollIE(CrunchyrollBaseIE):
# Just test metadata extraction
'skip_download': True,
},
}, {
'url': 'http://www.crunchyroll.com/media-723735',
'only_matching': True,
}]
_FORMAT_IDS = {
@ -603,6 +606,13 @@ class CrunchyrollShowPlaylistIE(CrunchyrollBaseIE):
'url': 'http://www.crunchyroll.com/ladies-versus-butlers?skip_wall=1',
'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):
show_id = self._match_id(url)