fix valid url

This commit is contained in:
subsense 2025-01-01 22:46:55 +09:00
parent 0158a525ed
commit ede4e0b78a

View file

@ -130,7 +130,7 @@ def _parse_artist_page(self, webpage, artist_id, artist_name):
class EggsIE(EggsBaseIE):
IE_NAME = 'eggs:single'
_VALID_URL = (
r'https?://(?:www\.)?eggs\.mu/artist/(?P<artist_id>[^/]+)/song/(?P<song_id>[^/?#&]+)'
r'https?://(?:www\.)?eggs\.mu/artist/(?P<artist_id>[^/]+)/song/(?P<song_id>[^/]+)'
)
_TESTS = [{
'url': 'https://eggs.mu/artist/32_sunny_girl/song/0e95fd1d-4d61-4d5b-8b18-6092c551da90',
@ -154,7 +154,7 @@ def _real_extract(self, url):
class EggsArtistIE(EggsBaseIE):
IE_NAME = 'eggs:artist'
_VALID_URL = (
r'https?://(?:www\.)?eggs\.mu/artist/(?P<artist_id>[^/?#]+)(?:[/?#].*)?$'
r'https?://(?:www\.)?eggs\.mu/artist/(?P<artist_id>[^/]+)'
)
_TESTS = [{
'url': 'https://eggs.mu/artist/32_sunny_girl',