studley;168079 Wrote:
> I have just started playing with the LastFM Module last night. In
> reading the debug text it appears to be searching, not only on the
> Artist, but also on the Contributors who are Composers.
>
> This is generating a huge number of extra requests, slowing down the
> process tremendously. I have looked through the code and I see where
> you are requesting the artists... but I cannot figure out how to adjust
> the request to Artist Only Roles.
>
> Could you point me in the right direction?
> If you change this row in Plugin.pm
From:
Code:
--------------------
$artists = Slim::Schema->resultset('Contributor');
--------------------
To:
Code:
--------------------
my @joins = ();
push @joins, 'contributorTracks';
$artists = Slim::Schema->resultset('Contributor')->search(
{'contributorTracks.role' => {'in' => [1,5]}},
{
'group_by' => 'me.id',
'join' => [EMAIL PROTECTED]
}
);
--------------------
I'll include this change in the next release.
--
erland
Erland Isaksson
'My homepage' (http://erland.homeip.net) 'My download page'
(http://erland.homeip.net/download)
(Developer of 'TrackStat'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-trackstat)
, 'SQLPlayList'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-sqlplaylist)
, 'DynamicPlayList'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-dynamicplaylist),
'Custom Browse'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-custombrowse),'Custom
Scan'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-customscan),'Custom
Skip'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-customskip)
and 'RandomPlayList'
(http://erland.homeip.net/download/do/viewapplication?name=slimserver-randomplaylist)
plugins)
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=29156
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins