ShokoAnime / ShokoServer

Repository for Shoko Server.
http://shokoanime.com/shoko-server/
MIT License
386 stars 75 forks source link

v3 API Series Search Failing with Japanese Search Queries #1141

Closed natyusha closed 1 month ago

natyusha commented 1 month ago

VERSION INFORMATION

Server Version: Latest Daily

Desktop Version: N/A

LOG FILE

N/A

DESCRIPTION

Utilizing the v3 API to search for anime titles in Japanese yields no results using the v3/Series/Search and v3/Series/AniDB/Search endpoints.

Edit: Thanks to re: vam it has been clarified that this is caused by not having Japanese in the series title language preference. So I'm not sure if this would still be considered a bug or not.

STEPS TO REPRODUCE

Using Chihayafuru (ちはやふる) as an example in swagger the issue can be seen: http://192.168.1.99:8111/api/v3/Series/Search?query=%E3%81%A1%E3%81%AF%E3%82%84%E3%81%B5%E3%82%8B&fuzzy=false&limit=10 firefox_2024-07-08_14-03-49

Some other endpoints seem to work with the same query: http://192.168.1.99:8111/api/v3/Series/StartsWith/%E3%81%A1%E3%81%AF%E3%82%84%E3%81%B5%E3%82%8B?limit=2147483647 firefox_2024-07-08_14-04-22

revam commented 1 month ago

Fixed in daily a while ago. It will only work to search for japanese (be it kanji or kana) if Japanese is in your title preference for all the APIs. image image