Page 1 of 1

LastFM Username Variable

PostPosted: Sat May 05, 2012 10:43 pm
by totoclectic
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 !

Re: LastFM Username Variable

PostPosted: Sun May 06, 2012 5:25 am
by hakko
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.