[feature request] Artist biography language
Posted:
Mon Oct 08, 2012 7:28 pm
by hakko
Currently, all artist biographies are fetched in English, while last.fm actually has an option to get them in other languages (if available).
Some people have requested a setting in Subsonic/MusicCabinet to actively choose which language to use.
This topic will be updated when that feature is implemented.
Re: [feature request] Artist biography language
Posted:
Wed Oct 10, 2012 1:34 am
by totoclectic
Hi and thank you for considering this! Before implementing a real setting, where could I change the lastfm request in the source code ?
Re: [feature request] Artist biography language
Posted:
Wed Oct 10, 2012 8:55 am
by hakko
https://github.com/hakko/musiccabinet/b ... lient.javaAt line 25, you'd need to add something like
- Code: Select all
params.add(new BasicNameValuePair("lang", "fr"));
see
http://www.last.fm/api/show/artist.getInfo ("fr" would be French, check
http://www.loc.gov/standards/iso639-2/php/code_list.php )
You'd then need to build a new MusicCabinet/Subsonic version. There are building instructions here:
https://github.com/hakko/subsonic#buildingYou'd probably also want to clear your history of fetching artist info, otherwise new info won't be fetched for two weeks or so. In psql/pgAdmin, do
- Code: Select all
delete from library.webservice_history where calltype_id = 5