[kemonoparty] match URLs with www subdomain

This commit is contained in:
Mike Fährmann
2021-11-26 17:03:13 +01:00
parent addb72e1bb
commit e298882acc

View File

@@ -14,7 +14,7 @@ from ..cache import cache
import itertools
import re
BASE_PATTERN = r"(?:https?://)?kemono\.party"
BASE_PATTERN = r"(?:https?://)?(?:www\.)?kemono\.party"
USER_PATTERN = BASE_PATTERN + r"/([^/?#]+)/user/([^/?#]+)"
@@ -273,6 +273,7 @@ class KemonopartyPostExtractor(KemonopartyExtractor):
}]},
}),
("https://kemono.party/subscribestar/user/alcorart/post/184330"),
("https://www.kemono.party/subscribestar/user/alcorart/post/184330"),
)
def __init__(self, match):