mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-01-18 01:16:59 +00:00
Make lang code optional and add a only_matching test
This commit is contained in:
parent
b91377b6d7
commit
bc85e70db0
@ -157,10 +157,10 @@ class FunimationIE(InfoExtractor):
|
|||||||
|
|
||||||
class FunimationShowPlaylistIE(FunimationIE):
|
class FunimationShowPlaylistIE(FunimationIE):
|
||||||
IE_NAME = 'funimation:playlist'
|
IE_NAME = 'funimation:playlist'
|
||||||
_VALID_URL = r'https?://(?:www\.)?funimation(?:\.com|now\.uk)/[a-z]{2}/shows/(?P<id>[^/?#&]+)'
|
_VALID_URL = r'https?://(?:www\.)?funimation(?:\.com|now\.uk)/(?:[^/]+/)?shows/(?P<id>[^/?#&]+)'
|
||||||
|
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://www.funimation.com/en/shows/hacksign/',
|
'url': 'https://www.funimation.com/shows/hacksign/',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': 90646,
|
'id': 90646,
|
||||||
'title': '.hack//SIGN'
|
'title': '.hack//SIGN'
|
||||||
@ -169,6 +169,10 @@ class FunimationShowPlaylistIE(FunimationIE):
|
|||||||
'params': {
|
'params': {
|
||||||
'skip_download': True,
|
'skip_download': True,
|
||||||
},
|
},
|
||||||
|
}, {
|
||||||
|
# with lang code
|
||||||
|
'url': 'https://www.funimation.com/en/shows/hacksign/',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
Loading…
Reference in New Issue
Block a user