philippe_44 - how would you like to get modifications? When looking at
the code I feel a strong urge to remove some of the legacy code...
There's code in there which was supposed to deal with older LMS
versions. But as you define 7.7 as the minimum in the install.xml
manifest this is no longer needed.
18746 - that's a diff against 0.24.
And here are a few lines which would tidy up the category list (order
alphabetically, get rid of duplicates - to be applied around line 295 in
Plugin.pm):
Code:
--------------------
my %seen;
$menu = [
sort {
uc($a->{name}) cmp
uc($b->{name})
} grep {
!$seen{$_->{passthrough}->[2]}++
} @$menu
];
--------------------
It does the de-duplication based on the url snippet (which is stored as
the third passthrough parameter). I don't know whether this is working
as expected in cases other than the category search. Maybe it should be
moved to the categories parser instead.
+-------------------------------------------------------------------+
|Filename: legacy.diff |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=18746|
+-------------------------------------------------------------------+
Michael
http://www.herger.net/slim-plugins - MusicArtistInfo, MusicInfoSCR,
Smart Mix
------------------------------------------------------------------------
mherger's Profile: http://forums.slimdevices.com/member.php?userid=50
View this thread: http://forums.slimdevices.com/showthread.php?t=87731
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins