LastFM Username Variable

Third-party modifications and add-ons, Apps and Clients

Moderator: moderators

LastFM Username Variable

Postby totoclectic » Sat May 05, 2012 10:43 pm

Hello,

I'm trying to use the LastFM's API but I can't find the right variable for the username, set in the settings, which I want to get from main.jsp.
Is it looking like others variables of this file (ex {child.name}) ? As usual, excuse my poor english and thanks for your help !
User avatar
totoclectic
 
Posts: 9
Joined: Mon Jan 03, 2011 10:55 pm
Location: Paris

Re: LastFM Username Variable

Postby hakko » Sun May 06, 2012 5:25 am

The last.fm username and password aren't available in main.jsp unless you explicitly pass them from MainController.java.

http://subsonic.svn.sourceforge.net/vie ... iew=markup

On line 84, you could add something like
Code: Select all
map.put("lastFmUsername", userSettings.getLastFmUsername());
, re-compile and then you have it in available in main.jsp as model.lastFmUsername.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden


Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 18 guests