Bug 4374 - Knob displaying last item twice+ after deleting playlist entry
: Knob displaying last item twice+ after deleting playlist entry
Status: CLOSED FIXED
Product: SB Transporter
Classification: Unclassified
Component: Front Panel
: 20
: PC Linux (other)
: P2 normal (vote)
: 6.5.1
Assigned To: Chris Owens
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-10-14 13:40 UTC by Michael Herger
Modified: 2009-01-14 10:13 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
complete patch? (691 bytes, patch)
2006-10-15 12:37 UTC, Michael Herger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Herger 2006-10-14 13:40:49 UTC
After removing one or more item(s) from the Now Playing list by pressing ADD on the remote or the front panel the Knob will not stop at the last entry but continue to display for every removed item:

- go to Now Playing
- remove one or more items -> x of y is updated correctly
- to to item y using the Knob
- turn the Knob further down -> it will repeat displaying the last item and "y of y" for the number of items removed, before it hits the end of the list

This is with fw 21 (not available from the fw list on the bug form), using the 6.5.1 2006-10-06 nightly build.
Comment 1 KDF 2006-10-14 17:26:20 UTC
try adding:
$client->updateKnob();

to Slim::Player::Playlist::refreshPlaylist();
Comment 2 Michael Herger 2006-10-14 23:29:23 UTC
> $client->updateKnob();

Didn't help.
Comment 3 Adrian Smith 2006-10-15 02:58:12 UTC
Does $client->updateKnob(1) help?
Comment 4 Michael Herger 2006-10-15 03:18:26 UTC
(In reply to comment #3)
> Does $client->updateKnob(1) help?

Yep, that does the trick.

Comment 5 Michael Herger 2006-10-15 12:37:44 UTC
Created attachment 1644 [details]
complete patch?

Would this patch be ok?
Comment 6 KDF 2006-10-15 13:51:18 UTC
shoudn't need the second part, since the client is covered in the $everyclient loop.
I don't believe that the isa(transporter) test is needed either as there is a dummy funciton in Slim::Player::Client
Comment 7 Michael Herger 2006-10-16 00:45:27 UTC
You mean this should do?

Index: Playlist.pm
===================================================================
--- Playlist.pm	(revision 10354)
+++ Playlist.pm	(working copy)
@@ -335,6 +335,7 @@
 	for my $everybuddy ($client, Slim::Player::Sync::syncedWith($client)) {
 		if ($everybuddy->isPlayer()) {
 			Slim::Buttons::Playlist::jump($everybuddy,$index);
+			$everybuddy->updateKnob(1);
 		}
 	}
 	
Comment 8 Adrian Smith 2006-10-20 12:04:25 UTC
Michael,

see campfire - I think this fix would create more knob traffic than desirable.

Could you do a --d_ui and see whether knob updates are already sent when you delete items from the list [they appear to be for me?]
Comment 9 KDF 2006-10-20 18:00:36 UTC
fixed in 6.5.1 at change 10428.  please update and verify.
the fixed needed was already in trunk, so no changes were made there aside from the changelog.
Comment 10 James Richardson 2009-01-14 10:13:24 UTC
Closing fixed bugs