If you like to try patching, you can try to change this row in the
SugarCube Plugin.pm file:

Code:
--------------------
    
  $track = Slim::Schema->rs('Track')->search(undef,{ 'order_by' => 
\'RAND()'})->single;
  
--------------------


To this:

Code:
--------------------
    
  $track = Slim::Schema->rs('Track')->search({'audio'=>1,'remote'=>0},{ 
'order_by' => \'RAND()'})->single;
  
--------------------


-- 
erland

Erland Isaksson
'My homepage' (http://erland.isaksson.info) 'My download page'
(http://erland.isaksson.info/download)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library, Title Switcher and Database
Query plugins'
(http://wiki.erland.isaksson.info/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=60904

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to