[% IF query %] [%# Add the search query to each link if available %] [% searchquery = 'query=' _ query _ '&' %] [% END %] [% FILTER null %] [% pageicon = 'RADIO'; noSpacer = NOT streaminfo; %] [% pwd_list = []; FOREACH crumb IN crumb; crumbItem = BLOCK %] [% crumb.name %] [% END %] [% pwd_list.push(crumbItem) %] [% END %] [% END # filter -%] [% PROCESS pageheader.html %] [% IF msg %][% WRAPPER contentcontainer %] [% msg %] [% END %][% END %] [% IF streaminfo %] [% IF streaminfo.item.enclosure || streaminfo.item.url %]
[% WRAPPER playlink %]href="index.html?[% searchquery %]action=play&index=[% streaminfo.index %]&player=[% player | uri %]"[% END %] [% "PLAY_THIS_SONG" | string %]
[% WRAPPER addlink %]href="index.html?[% searchquery %]action=add&index=[% streaminfo.index %]&player=[% player | uri %]"[% END %] [% "ADD_THIS_SONG_TO_PLAYLIST" | string %]
[% END %]
[% IF streaminfo.item.image %]

[% END %]

- [% "TITLE" | string; "COLON" | string %]
  [% (streaminfo.item.name || streaminfo.item.title) | html %]
[% IF streaminfo.item.subtitle %]
- [% "XML_SUBTITLE" | string; "COLON" | string %]
  [% streaminfo.item.subtitle | html %]
[% END %] [% IF streaminfo.item.pubdate %]
- [% "XML_DATE" | string; "COLON" | string %]
  [% streaminfo.item.pubdate | html %]
[% END %] [% IF streaminfo.item.url %]
- [% "URL" | string; "COLON" | string %]
  [% streaminfo.item.url | html %]
[% END %] [% IF streaminfo.item.description %]
- [% "DESCRIPTION" | string; "COLON" | string %]
  [% streaminfo.item.description | html %]
[% END %] [% IF streaminfo.item.summary %]
- [% "XML_SUMMARY" | string; "COLON" | string %]
  [% streaminfo.item.summary | html %]
[% END %] [% IF streaminfo.item.link %]
- [% "XML_LINK" | string; "COLON" | string %]
  [% streaminfo.item.link | html %]
[% END %] [% IF streaminfo.item.enclosure %]
- [% "XML_ENCLOSURE" | string; "COLON" | string %]
  [% streaminfo.item.enclosure.url | html %]
  [% FILTER format('%.2f'); streaminfo.item.enclosure.length / 1048576; END %] MB
[% END %] [% IF streaminfo.item.duration %]
- [% "LENGTH" | string; "COLON" | string %]
  [% streaminfo.item.duration | html %]
[% END %] [% IF streaminfo.item.explicit %]
- [% "XML_EXPLICIT" | string; "COLON" | string %]
  [% streaminfo.item.explicit | html %]
[% END %] [% IF streaminfo.item.bitrate %]
- [% "BITRATE" | string; "COLON" | string %]
  [% streaminfo.item.bitrate | html %] [% "KBPS" | string %]
[% END %] [% IF streaminfo.item.listeners %]
- [% "NUMBER_OF_LISTENERS" | string; "COLON" | string %]
  [% streaminfo.item.listeners | html %]
[% END %] [% IF streaminfo.item.current_track %]
- [% "NOW_PLAYING" | string; "COLON" | string %]
  [% streaminfo.item.current_track | html %]
[% END %] [% IF streaminfo.item.genre %]
- [% "GENRE" | string; "COLON" | string %]
  [% streaminfo.item.genre | html %]
[% END %] [% IF streaminfo.item.source %]
- [% "SOURCE" | string; "COLON" | string %]
  [% streaminfo.item.source | html %]
[% END %]

[% END %] [% IF search %]

[% END %] [%- odd = 1 %] [%- IF items -%] [% IF hasPagebar %] [% "ITEMS" | string %] [% pageinfo.startitem + 1 %] [% "TO" | string %] [% pageinfo.enditem + 1 %] [% "OF" | string %] [% pageinfo.totalitems %] [% PROCESS pagebar %] [% END %] [%- WRAPPER contentcontainer %] [% IF itemsHaveAudio %] [%- BLOCK allcontrol -%] [% WRAPPER playlink %]href="index.html?[% searchquery %]action=playall&index=[% currentIndex %]&player=[% player | uri %]"[% END %] [% WRAPPER addlink %]href="index.html?[% searchquery %]action=addall&index=[% currentIndex %]&player=[% player | uri %]"[% END %] [%- END %] [%- WRAPPER contentitem controls = 'allcontrol' %] [% "ALL_SONGS" | string %] [%- END %] [%- odd = (not odd) %] [% END %] [%- FOREACH item = items %] [%- BLOCK gencontrol -%] [% IF item.type == 'audio' || item.enclosure %] [% WRAPPER playlink %]href="index.html?[% searchquery %]action=play&index=[% index _ (start + loop.index) %]&player=[% player | uri %]"[% END %] [% WRAPPER addlink %]href="index.html?[% searchquery %]action=add&index=[% index _ (start + loop.index) %]&player=[% player | uri %]"[% END %] [% ELSE %] [%- WRAPPER descendlink %]href="index.html?[% searchquery %]index=[% index _ (start + loop.index) %]&player=[% player | uri %]"[%- END %] [% END %] [%- END %] [%- WRAPPER contentitem controls = 'gencontrol' %] [% item.name || item.title %] [%- END %] [%- odd = (not odd) %] [%- END %] [%- END %] [% IF hasPagebar %] [% "ITEMS" | string %] [% pageinfo.startitem + 1 %] [% "TO" | string %] [% pageinfo.enditem + 1 %] [% "OF" | string %] [% pageinfo.totalitems %] [% PROCESS pagebar %] [% END %] [%- END %] [% PROCESS pagefooter.html %]