Bug 7478 - playlistTrack not mixable
: playlistTrack not mixable
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: MusicIP
: 7.0.1
: PC Windows XP
: -- normal (vote)
: 7.x
Assigned To: Andy Grundman
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-10 13:05 UTC by KDF
Modified: 2009-07-31 10:17 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description KDF 2008-03-10 13:05:06 UTC
Steps to reproduce:

Music Library->Playlists->choose playlist
Press and hold PLAY on a playlist track fails to mix.

Log shows:
 Slim::Plugin::MusicMagic::Plugin::getMix (661) Error: No valid type specified for mix


This is because the type in this mode is given by $levels[$level].  This is 'playlistTrack' when browsing playlists, so this is invalid.  Fix should be to correct this in the mixerfunction.

Reproduceable with current svn 7.0.1
Comment 1 KDF 2008-03-10 13:11:56 UTC
proposed patch (alternative is to check for playlistTrack in mixerfunction AND getMix, changing to 'track' only at the last second for the call to the mixer API):

Index: C:/slim/server/Slim/Plugin/MusicMagic/Plugin.pm
===================================================================
--- C:/slim/server/Slim/Plugin/MusicMagic/Plugin.pm	(revision 17841)
+++ C:/slim/server/Slim/Plugin/MusicMagic/Plugin.pm	(working copy)
@@ -500,9 +501,13 @@
 		
 		$mixSeed = $currentItem->name;
 	}
+	
+	# Bug: 7478: special handling for playlist tracks.
+	if ($levels[$level] eq 'playlistTrack') {
+		$mixSeed = $currentItem->path;
+		$mix = getMix($client, $mixSeed, 'track');
+	} elsif ($currentItem && ($paramref->{'mood'} || $currentItem->musicmagic_mixable)) {
 
-	if ($currentItem && ($paramref->{'mood'} || $currentItem->musicmagic_mixable)) {
-
 		# For the moment, skip straight to InstantMix mode. (See VarietyCombo)
 		$mix = getMix($client, $mixSeed, $levels[$level]);
 	}
Comment 2 Michael Herger 2008-03-27 06:57:42 UTC
change 18084 - thanks again, Kevin!
Comment 3 James Richardson 2008-05-08 15:50:49 UTC
(In reply to comment #2)
> change 18084 
> 

Closing bug.
Comment 4 Chris Owens 2009-07-31 10:17:54 UTC
Reduce number of active targets for SC