Phil Meyer;202819 Wrote:
> I wondered if there was a way to create the menu via SQL Playlist,
> Dynamic Playlist or Trackstat. Eg. there is a "last added songs"
> trackstat menu. So I created a "Recently Added Podcasts" SQL Playlist.
> But, this is not browseable - when I play the dynamic playlist, it
> selects random tracks added in the last 30 days within the podcasts
> library.
>
> Am I missing something simple somewhere? Is it easy to create custom
> browse templates to do this sort of thing?
>
As you have noted the playlist menus aren't browsable.
I'm not sure exacly how you like it to work and look like, but here is
some ideas.
This will make sure the menu only is shown when the library 7 is
active.
<includedlibraries>7</includedlibraries>
But I'm guessing that you just want to move the menu inside of a
specific library, that can be done by adding something like:
<menugroup>Libraries/Podcasts</menugroup>
So if you like the menu to be shown as a top menu but only be visible
when library 7 is active (I'm guessing library 7 is your podcasts
library), you would need to do:
Code:
--------------------
<?xml version="1.0" encoding="utf-8"?>
<custombrowse>
<minslimserverversion>6.5</minslimserverversion>
<menu>
<includedlibraries>7</includedlibraries>
<menuname>Latest</menuname>
<menuorder>50</menuorder>
<menu>
<id>track</id>
<itemtype>track</itemtype>
<itemformat>track</itemformat>
<playtype>all</playtype>
<menutype>sql</menutype>
<menudata>
select tracks.id,tracks.title from
tracks,multilibrary_track
where
tracks.id=multilibrary_track.track and
multilibrary_track.library=7 and
tracks.audio=1
order by tracks.timestamp desc
</menudata>
<menu>
<id>trackdetails</id>
<menutype>trackdetails</menutype>
<menudata>track</menudata>
</menu>
</menu>
</menu>
</custombrowse>
--------------------
Or if you instead want the menu to show up inside "Libraries/Podcasts"
you would do:
Code:
--------------------
<?xml version="1.0" encoding="utf-8"?>
<custombrowse>
<minslimserverversion>6.5</minslimserverversion>
<menu>
<menugroup>Libraries/Podcasts</menugroup>
<menuname>Latest</menuname>
<menuorder>50</menuorder>
<menu>
<id>track</id>
<itemtype>track</itemtype>
<itemformat>track</itemformat>
<playtype>all</playtype>
<menutype>sql</menutype>
<menudata>
select tracks.id,tracks.title from
tracks,multilibrary_track
where
tracks.id=multilibrary_track.track and
multilibrary_track.library=7 and
tracks.audio=1
order by tracks.timestamp desc
</menudata>
<menu>
<id>trackdetails</id>
<menutype>trackdetails</menutype>
<menudata>track</menudata>
</menu>
</menu>
</menu>
</custombrowse>
--------------------
The menu format is described in the Custom Browse section on my wiki if
you are interested in all the details.
Anyway, I'll try to provide a template based "New Songs" menu in the
next Custom Browse release. Hopefully within the next day or so.
--
erland
Erland Isaksson
'My homepage' (http://erland.homeip.net) 'My download page'
(http://erland.homeip.net/download)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan, Custom Skip, Multi Library and RandomPlayList plugins'
(http://wiki.erland.homeip.net/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=35378
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins