[pixiv] update 'work' extractor pattern & add tests

This commit is contained in:
Mike Fährmann
2025-04-12 16:42:42 +02:00
parent 1ee057285d
commit 2ef7a05e10
2 changed files with 25 additions and 1 deletions

View File

@@ -531,7 +531,7 @@ class PixivMeExtractor(PixivExtractor):
class PixivWorkExtractor(PixivExtractor):
"""Extractor for a single pixiv work/illustration"""
subcategory = "work"
pattern = (r"(?:https?://)?(?:(?:www\.|touch\.)?pixiv\.net"
pattern = (r"(?:https?://)?(?:(?:www\.|touch\.)?ph?ixiv\.net"
r"/(?:(?:en/)?artworks/"
r"|member_illust\.php\?(?:[^&]+&)*illust_id=)(\d+)"
r"|(?:i(?:\d+\.pixiv|\.pximg)\.net"