1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

[reactor] match 'best', 'new', 'all' URLs (#3073)

This commit is contained in:
Mike Fährmann 2022-10-19 10:52:33 +02:00
parent 618c81afdf
commit ea8113ff36
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -170,7 +170,7 @@ class ReactorTagExtractor(ReactorExtractor):
subcategory = "tag"
directory_fmt = ("{category}", "{search_tags}")
archive_fmt = "{search_tags}_{post_id}_{num}"
pattern = BASE_PATTERN + r"/tag/([^/?#]+)"
pattern = BASE_PATTERN + r"/tag/([^/?#]+)(?:/[^/?#]+)?"
test = (
("http://reactor.cc/tag/gif"),
("http://anime.reactor.cc/tag/Anime+Art"),
@ -180,6 +180,10 @@ class ReactorTagExtractor(ReactorExtractor):
("http://joyreactor.com/tag/Cirno", {
"url": "aa59090590b26f4654881301fe8fe748a51625a8",
}),
# 'best' rating (#3073)
("http://joyreactor.com/tag/Dark+Souls+2/best", {
"count": 4,
}),
("http://pornreactor.cc/tag/RiceGnat", {
"range": "1-25",
"count": ">= 25",