[extractor/holodex] Fix _VALID_URL (#4948)

Authored by: LiviaMedeiros
This commit is contained in:
Livia Medeiros 2022-10-04 06:01:53 +09:00 committed by GitHub
parent a057779d5e
commit 1d77d8ce07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@
class HolodexIE(InfoExtractor): class HolodexIE(InfoExtractor):
_VALID_URL = r'''(?x)https?://(?:www\.|staging\.)?holodex\.net/(?: _VALID_URL = r'''(?x)https?://(?:www\.|staging\.)?holodex\.net/(?:
api/v2/playlist/(?P<playlist>\d+)| api/v2/playlist/(?P<playlist>\d+)|
watch/(?P<id>\w+)(?:\?(?:[^#]+&)?playlist=(?P<playlist2>\d+))? watch/(?P<id>[\w-]{11})(?:\?(?:[^#]+&)?playlist=(?P<playlist2>\d+))?
)''' )'''
_TESTS = [{ _TESTS = [{
'url': 'https://holodex.net/watch/9kQ2GtvDV3s', 'url': 'https://holodex.net/watch/9kQ2GtvDV3s',