[%- pagetitle = 'PLUGIN_LASTFM_MODULE_NAME' | string; pageicon = 'RADIO' -%] [%- pwd_list = BLOCK -%]/ [% "PLUGIN_LASTFM_MODULE_NAME" | string %] [% IF user %] / [% user %] [% END %] [% END -%] [%- pageHeaderInfo = BLOCK %] [% END -%] [%- PROCESS pageheader.html %] [% BLOCK href %] href="index.html?lastfm=[% lastfm | uri %]&lastfmp1=[% lastfmp1 | uri %]&player=[% player | uri %]" [% END %] [% BLOCK lastfmLink %] [% IF command == 'rtp' %] [% WRAPPER cmdlink cmdtitle='PLUGIN_LASTFM_DUMMY' cmdimage='dummy' noTarget=1 %] [% PROCESS href %] > [% IF rtp == 1 %][% 'OFF' | string %][% ELSE %][% 'ON' | string %][% END %] [% ELSIF command == 'discovery' %] [% WRAPPER cmdlink cmdtitle='PLUGIN_LASTFM_DUMMY' cmdimage='dummy' noTarget=1 %] [% PROCESS href %] > [% IF rtp == 1 %][% 'OFF' | string %][% ELSE %][% 'ON' | string %][% END %] [% ELSE %] [% WRAPPER $link noTarget=1 %] [% PROCESS href %] [% END %] [% END %] [% END %] [% IF user == '' %]

[% 'PLUGIN_LASTFM_SETUP_LOGIN' | string %]

[% ELSIF player == '' %]

[% 'PLUGIN_LASTFM_CHOOSE_PLAYER' | string %]

[% ELSE %] [% IF albumart %]

[% 'NOW_PLAYING' | string %]

[%- WRAPPER contentitem %] [% IF stationfeed %] [% END %] [% sas = 'PLUGIN_LASTFM_SIMILAR_ARTISTS' | string %]
[% 'PLUGIN_LASTFM_STATION' | string; 'COLON' | string %] [% station %] [% PROCESS lastfmLink lastfm="addlfm" lastfmp1="$station_url" link="addlink" %]
Feed: [% stationfeed %] [% PROCESS lastfmLink lastfm="addlfm" lastfmp1="$stationfeed_url" link="addlink" %]
[% 'ARTIST' | string %]: [% artist %][% PROCESS lastfmLink lastfm="addlfm" lastfmp1=sas _ " $artist;artist/$artist/similarartists" link="addlink" %]
[% 'TRACK' | string %]: [% track %]
[% 'ALBUM' | string %]: [% album %]
[% 'LENGTH' | string %]: [% trackduration %]s
[% END %] [% IF albumart != 'none' %]

[% END %] [% odd = 1 %] [% IF history %]

Recently Played

[% FOREACH title = history %] [%- WRAPPER contentitem %] [% title %] [% odd = (not odd) %] [% END %] [% END %]
[% END %]

Commands

[%- WRAPPER contentcontainer %] [% FOREACH command = commands %] [% BLOCK ccontrols %] [% PROCESS lastfmLink lastfm="command" lastfmp1="$command" link="playlink" %] [% END %] [%- WRAPPER contentitem controls='ccontrols' %] [% IF command == 'rtp' %] [% "PLUGIN_LASTFM_RTP" | string; "COLON" | string %] [% IF rtp == 1 %][% 'ON' | string %][% ELSE %][% 'OFF' | string %][% END %] [% ELSIF command == 'discovery' %] [% "PLUGIN_LASTFM_DISCOVERY" | string; "COLON" | string %] [% IF disco == 1 %][% 'ON' | string %][% ELSE %][% 'OFF' | string %][% END %] [% ELSE %] [% command %] [% END %] [% odd = (not odd) %] [% END %] [% END %] [% END %] [% command = 0 %] [% ELSIF status %]

[% IF status == 'FAILEDLOGIN' %] [% 'PLUGIN_LASTFM_SESSION_ERROR' | string %] [% ELSIF status == 'FAILEDCONNECT' %] [% 'PLUGIN_LASTFM_CONNECTION_ERROR' | string %] [% ELSIF status == 'STARTING' %] [% 'PLUGIN_LASTFM_WAIT' | string %] [% ELSIF status == 'WARN' %] [% 'PLUGIN_LASTFM_WARNING' | string %] [% END %]

[% END %]

[% IF albumart %] [% 'PLUGIN_LASTFM_CHANGE_STATION' | string %] [% ELSE %] [% 'PLAY' | string %] [% 'PLUGIN_LASTFM_MODULE_NAME' | string %] [% END %]

[%- WRAPPER contentcontainer %] [% IF ! albumart %] [% BLOCK bcontrols %] [% PROCESS lastfmLink lastfm="" lastfmp1="" link="dummylink" %] [% PROCESS lastfmLink lastfm="playlfm" lastfmp1="" link="playlink" %] [% END %] [%- WRAPPER contentitem controls='bcontrols' %] [% 'PLAY' | string %] default [% 'PLUGIN_LASTFM_MODULE_NAME' | string %] station [% odd = (not odd) %] [% END %] [% END %] [% BLOCK dcontrols %] [% WRAPPER cmdlink cmdtitle='PLUGIN_LASTFM_DUMMY' cmdimage='dummy' %] /> [% WRAPPER cmdlink cmdtitle='PLUGIN_LASTFM_DUMMY' cmdimage='dummy' %] /> [% END %] [% odd = (not odd) %]
[%- WRAPPER contentitem controls='dcontrols' %] [% 'PLUGIN_LASTFM_STATION' | string; 'COLON' | string %] [% END %]
[% loop = 0 %] [% WHILE loop < stationnames.size %] [% station = stationnames.$loop %] [% stationlink = stationlinks.$loop %] [% BLOCK mycontrols %] [% PROCESS lastfmLink lastfm="delete" lastfmp1="$stationlink" link="removelink" %] [% PROCESS lastfmLink lastfm="playlfm" lastfmp1="$stationlink" link="playlink" %] [% END %] [%- WRAPPER contentitem controls='mycontrols' %] [% 'PLUGIN_LASTFM_STATION' | string; "COLON" | string %] [% station %] [% odd = (not odd) %] [% END %] [% loop = loop + 1 %] [% END %] [% END %] [% END %]

Help

[% PROCESS pagefooter.html %]