1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-07-08 12:58:11 +02:00

[ie/Piapro] Improve _VALID_URL (#8999)

Authored by: FinnRG
This commit is contained in:
Finn R. Gärtner 2024-01-14 19:28:03 +01:00 committed by GitHub
parent 95e82347b3
commit 8e6e365172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@
class PiaproIE(InfoExtractor): class PiaproIE(InfoExtractor):
_NETRC_MACHINE = 'piapro' _NETRC_MACHINE = 'piapro'
_VALID_URL = r'https?://piapro\.jp/(?:t|content)/(?P<id>\w+)/?' _VALID_URL = r'https?://piapro\.jp/(?:t|content)/(?P<id>[\w-]+)/?'
_TESTS = [{ _TESTS = [{
'url': 'https://piapro.jp/t/NXYR', 'url': 'https://piapro.jp/t/NXYR',
'md5': 'f7c0f760913fb1d44a1c45a4af793909', 'md5': 'f7c0f760913fb1d44a1c45a4af793909',
@ -49,6 +49,9 @@ class PiaproIE(InfoExtractor):
}, { }, {
'url': 'https://piapro.jp/content/hcw0z3a169wtemz6', 'url': 'https://piapro.jp/content/hcw0z3a169wtemz6',
'only_matching': True 'only_matching': True
}, {
'url': 'https://piapro.jp/t/-SO-',
'only_matching': True
}] }]
_login_status = False _login_status = False