diff options
author | Finn R. Gärtner <65015656+FinnRG@users.noreply.github.com> | 2024-01-14 19:28:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-14 18:28:03 +0000 |
commit | 8e6e3651727b0b85764857fc6329fe5e0a3f00de (patch) | |
tree | e6d36b4ebd7f48e59f2988ae4f6071dda5ae4e2a | |
parent | 95e82347b398d8bb160767cdd975edecd62cbabd (diff) |
[ie/Piapro] Improve `_VALID_URL` (#8999)
Authored by: FinnRG
-rw-r--r-- | yt_dlp/extractor/piapro.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/piapro.py b/yt_dlp/extractor/piapro.py index 5f39e0639..3ae985da2 100644 --- a/yt_dlp/extractor/piapro.py +++ b/yt_dlp/extractor/piapro.py @@ -12,7 +12,7 @@ from ..utils import ( 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 |