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

[pixiv] use 'exact_match_for_tags' as default search mode (#3092)

This commit is contained in:
Mike Fährmann 2022-10-24 14:16:40 +02:00
parent a90e5cb354
commit 769e6754dc
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -560,7 +560,7 @@ class PixivSearchExtractor(PixivExtractor):
sort = "date_d"
self.sort = sort_map[sort]
target = query.get("s_mode", "s_tag")
target = query.get("s_mode", "s_tag_full")
target_map = {
"s_tag": "partial_match_for_tags",
"s_tag_full": "exact_match_for_tags",
@ -568,7 +568,7 @@ class PixivSearchExtractor(PixivExtractor):
}
if target not in target_map:
self.log.warning("invalid search target '%s'", target)
target = "s_tag"
target = "s_tag_full"
self.target = target_map[target]
self.date_start = query.get("scd")