feat: use exact artist lookup instead of fuzzy search

--artist now calls parser.artist() which resolves the artist name to a
tag id via the /tags/artist/{slug} endpoint, then queries /galleries/tagged
for exact results. BaseParser.artist() defaults to search('artist:...')
as fallback for plugins that don't implement it.

Fixes #430

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ricter Zheng
2026-04-14 21:51:50 +08:00
parent 51fd1f964c
commit 360ea00bd9
4 changed files with 7 additions and 4 deletions

View File

@@ -86,8 +86,8 @@ def main():
)
elif options.artist:
doujinshis = parser.search(
f'artist:{options.artist}',
doujinshis = parser.artist(
options.artist,
sorting=options.sorting,
page=page_list,
is_page_all=options.page_all,