[% PROCESS settings/header.html %] [% title = "PLUGIN_SPOTTY" %] [% IF helperMissing; WRAPPER setting title="PLUGIN_SPOTTY" desc="" %]
[% helperMissing %]
[% title = "" %] [% END; END %] [% IF error429; WRAPPER setting title="" desc="" %]
[% error429 %]
[% END; END %] [% IF credentials; WRAPPER setting desc="" %]

[% FOREACH creds = credentials %]
[% creds.keys.0 %] |
[% END %]

[% END; END %] [% WRAPPER setting title="" desc="" %] [% END %] [% IF credentials && credentials.size > 1 %] [% WRAPPER setting title="PLUGIN_SPOTTY_SELECT_ACCOUNT" desc="" %] [% 'PLUGIN_SPOTTY_SIMPLIFIED_ACCOUNT_SWITCHING_OFF' | getstring %]
[% 'PLUGIN_SPOTTY_SIMPLIFIED_ACCOUNT_SWITCHING_ON' | getstring %]
[% END %] [% END %] [% WRAPPER setting title="" desc="" %] [% "PLUGIN_SPOTTY_SHOW_MY_ALBUMS_ONLY_DESC" | string %] [% END %] [% WRAPPER setting title="PLUGIN_SPOTTY_AUDIO_SETTINGS" desc="" %]
[% END %] [% WRAPPER setting title="PLUGIN_SPOTTY_SPOTIFY_CONNECT" desc="PLUGIN_SPOTTY_SPOTIFY_CONNECT_DESC_LONG" %] [% IF !canConnect %] [% "PLUGIN_SPOTTY_NEED_HELPER_UPDATE" | string %] [% ELSE %] [% IF players.size == 0 %] [% "NO_PLAYER_FOUND" | string %] [% END %]

[% FOREACH player IN players %] [% maxCols = 5 %] [% IF loop.index() % maxCols == 0 %]
[% END %] [% player.name %] [% IF (loop.index + 1) % maxCols == 0 %]
[% END %] [% END %]

[% END %] [% END %] [% IF canConnect && canDiscovery; WRAPPER setting title="" desc="" %] [% "PLUGIN_SPOTTY_DISABLE_DISCOVERY_DESC" | string %] [% END; END %] [% PROCESS "plugins/Spotty/settings/helpers.html" %] [% WRAPPER setting title="PLUGIN_SPOTTY_CLIENT_ID" desc="PLUGIN_SPOTTY_CLIENT_ID_DESC" %] [% END %] [% PROCESS settings/footer.html %]