Bugzilla – Bug 8366
Random Mix, Missing Functionality
Last modified: 2009-07-31 10:22:34 UTC
The following code was removed from the Random Mix Plugin under change 20302. It is used to enable mapping of a key press to start a random mix. sub getFunctions { # Functions to allow mapping of mixes to keypresses return { 'tracks' => sub { playRandom(shift, 'track') }, 'albums' => sub { playRandom(shift, 'album') }, 'contributors' => sub { playRandom(shift, 'contributor') }, 'year' => sub { playRandom(shift, 'year') }, } } Craig
Michael, do you recall why this was taken out at change 20302?
Wanted to get rid of hard coded dependencies. Maybe I was a bit optimisitic assuming everybody would now start using the newly introduced url to access mixes. Will fix this.
so, with the new urls, the rendom mixes can be assigned as favourites, which can be mapped at will to key presses (by default 0-9 are already mapped)? That would mean this bit of code isn't needed.
Gee... please allow the noob question: how would I trigger those mixes? It's easy to put the function back in, but I don't know how to test :-/
Created attachment 3417 [details] adding functions handler back in does this patch work for you?
(In reply to comment #4) > Gee... please allow the noob question: how would I trigger those mixes? It's > easy to put the function back in, but I don't know how to test :-/ I have this is my custom map, 7.hold = modefunction_Slim::Plugin::RandomPlay::Plugin->tracks 8.hold = modefunction_Slim::Plugin::RandomPlay::Plugin->albums 9.hold = modefunction_Slim::Plugin::RandomPlay::Plugin->contributors I could has a noob question on how do you attach this to a favourite? Craig
change 20643 - I put the function handler back in for backwards compatibility. Thanks for the mapping example :-)
This bug has now been fixed in the 7.1 release version of SqueezeCenter! Please download the new version from http://www.slimdevices.com if you haven't already. If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Reduce number of active targets for SC