[feature request] Artist biography language

Artist radio, genre radio & related artists. A Subsonic server for music nerds.

Moderator: moderators

[feature request] Artist biography language

Postby hakko » Mon Oct 08, 2012 7:28 pm

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.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: [feature request] Artist biography language

Postby totoclectic » Wed Oct 10, 2012 1:34 am

Hi and thank you for considering this! Before implementing a real setting, where could I change the lastfm request in the source code ?
User avatar
totoclectic
 
Posts: 9
Joined: Mon Jan 03, 2011 10:55 pm
Location: Paris

Re: [feature request] Artist biography language

Postby hakko » Wed Oct 10, 2012 8:55 am

https://github.com/hakko/musiccabinet/b ... lient.java

At 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#building

You'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
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: [feature request] Artist biography language

Postby hakko » Wed Feb 13, 2013 8:05 pm

MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden


Return to MusicCabinet

Who is online

Users browsing this forum: No registered users and 18 guests