]> jfr.im git - yt-dlp.git/commitdiff
[ie/Piapro] Improve `_VALID_URL` (#8999)
authorFinn R. Gärtner <redacted>
Sun, 14 Jan 2024 18:28:03 +0000 (19:28 +0100)
committerGitHub <redacted>
Sun, 14 Jan 2024 18:28:03 +0000 (18:28 +0000)
Authored by: FinnRG

yt_dlp/extractor/piapro.py

index 5f39e063964963e859a208d329f33abd6b0e1afa..3ae985da2b36671856a8ac0388f7fb981ca4ade4 100644 (file)
@@ -12,7 +12,7 @@
 
 class PiaproIE(InfoExtractor):
     _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 = [{
         'url': 'https://piapro.jp/t/NXYR',
         'md5': 'f7c0f760913fb1d44a1c45a4af793909',
@@ -49,6 +49,9 @@ class PiaproIE(InfoExtractor):
     }, {
         'url': 'https://piapro.jp/content/hcw0z3a169wtemz6',
         'only_matching': True
+    }, {
+        'url': 'https://piapro.jp/t/-SO-',
+        'only_matching': True
     }]
 
     _login_status = False