mihon/app
MajorTanya 78f9a84b14
Some improvements to Bangumi tracker search (#1396)
In short:
- fetch & show actual summary
- fallback to "name" if "name_cn" is empty
- request larger responseGroup to get & display the summary & rating
- add type filter query param to make Bangumi filter, not us

Previously, we only displayed the "name" in the summary area and used
"name_cn" as the entry name. However, "name_cn" (Chinese name) can be
an empty string at times, resulting in an awkward looking search
result list where some, many, or even all the results have no title
displayed and only show the "name" (Japanese name) in the summary
area. This has been solved by using "name" as a fallback value should
"name_cn" be empty.

If a Chinese name is available, the original name is prepended to the
summary with the addition "作品原名:" (meaning "original series title").

By using the "responseGroup=large" query parameter, we can request
the required data we need to display the actual summary for an entry
and the entry's average rating.
The "name" is prepended to the summary contents, if any exist, so it
is still accessible for series identification if a "name_cn" exists
too and was used for the result title.

Adding the "type=1" filter query parameter means Bangumi will only
return entries of type 1 ("book") instead of all types and Mihon
needing to filter, resulting in potentially missed entry matches.
2024-10-31 01:52:18 +06:00
..
src Some improvements to Bangumi tracker search (#1396) 2024-10-31 01:52:18 +06:00
build.gradle.kts Release v0.17.0 2024-10-26 23:37:41 +06:00
proguard-android-optimize.txt Remove unused rxandroid dependency 2023-08-26 10:30:26 -04:00
proguard-rules.pro Refactor archive support with libarchive (#949) 2024-06-26 20:54:25 +06:00
shortcuts.xml Minor cleanup 2023-10-14 22:46:51 -04:00