[sankaku] support post URLs with alphanumeric IDs (#5073)

This commit is contained in:
Mike Fährmann
2024-01-18 16:05:41 +01:00
parent ea553a1d55
commit a416d4c3d5
2 changed files with 29 additions and 8 deletions

View File

@@ -143,7 +143,7 @@ class SankakuPostExtractor(SankakuExtractor):
"""Extractor for single posts from sankaku.app"""
subcategory = "post"
archive_fmt = "{id}"
pattern = BASE_PATTERN + r"/posts?(?:/show)?/([0-9a-f]+)"
pattern = BASE_PATTERN + r"/posts?(?:/show)?/(\w+)"
example = "https://sankaku.app/post/show/12345"
def __init__(self, match):