It looks like smarmix always takes the first match: it always takes the
live version of Smells Like Teen Spirit. Is it possible to change that
behavior: if there are two or more matches (same artist/title) -> choose
one at random?
I'm already doing this:
# sometimes we have multiple IDs for one track - pick a random one...
if ($song->{foreign_ids} && scalar @{$song->{foreign_ids}}) {
my $songIds = $song->{foreign_ids};
$song = $songIds->[rand @$songIds]->{foreign_id} if scalar @$songIds;
"rand @$songIds" would pick a random index. But rand sometimes just
doesn't look random enough...
--
Michael
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins