[API Request] Filter getAlbumList2 by starting character #20
jeffvli
started this conversation in
API requests
Replies: 1 comment 2 replies
-
Can't this be done by expanding the search3 API? Like adding a new parameter That would solve this and greatly improve the searches? WDTY? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Type of change
API tweak
Proposal description
Would also be used for other list endpoints such as #18.
Also related to #7
Adds an optional parameter
startsWith
togetAlbumList2
which accepts a string value. The value included in the parameter would allow users to quickly view only albums that start with the specified character.Clients can implement this in different ways such as:
Example from MusicBee:
Backward compatibility impact
No response
Backward compatibility
API details
The
startsWith
parameter really only makes sense when usingtype=alphabeticalByName
, but technically it can be used for other filters as well except random.Example:
Security impacts
No response
Potential issues
The implementation can be complex depending on how far server owners want to implement it. It would likely be trivial for the english/latin alphabetic. Different languages such as Japanese would be significantly more difficult if you wanted to have it full-featured.
For example:
In japanese, the word
飛行
can also be written asひこう
in Hiragana.If we have an album titled
飛行
and usestartsWith=ひ
, it would not find the album unless a separate column in the database is added with the album title parsed to Hiragana / Katakana.The above is just some food for thought. Definitely not needed, and a simple implementation would likely suffice for most users.
Servers owners may also want to sanitize album / song titles in the database to omit common starting words to enhance this filter:
Alternative solutions
No response
Beta Was this translation helpful? Give feedback.
All reactions