[rule34us:tag] support URLs with empty 'q' query parameter (#8546)

This commit is contained in:
Mike Fährmann
2025-11-12 21:04:11 +01:00
parent 65c4f00939
commit 1b6353064d
2 changed files with 10 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ class Rule34usTagExtractor(Rule34usExtractor):
subcategory = "tag"
directory_fmt = ("{category}", "{search_tags}")
archive_fmt = "t_{search_tags}_{id}"
pattern = r"(?:https?://)?rule34\.us/index\.php\?r=posts/index&q=([^&#]+)"
pattern = r"(?:https?://)?rule34\.us/index\.php\?r=posts/index&q=([^&#]*)"
example = "https://rule34.us/index.php?r=posts/index&q=TAG"
def __init__(self, match):