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:
parent
a90e5cb354
commit
769e6754dc
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user