Bug 2798 - implement forget command like other commands
: implement forget command like other commands
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: CLI
: 6.2.2
: All All
: P2 enhancement (vote)
: ---
Assigned To: Dan Sully
http://forums.slimdevices.com/showthr...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-01-08 19:38 UTC by Michael Wagner
Modified: 2006-01-26 09:27 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 Michael Wagner 2006-01-08 19:38:42 UTC
the forget command, used to forget a player, is implemented outside of execute.pm. It seems to be handled directly in Slim::Web::Pages.pm.

This makes it difficult to, for instance, tell Slim to drop a player from a CLI or other command interface.

Please implement as a CLI/STDIN/xPL etc command and route through execute.
Comment 1 Michael Wagner 2006-01-08 19:41:59 UTC
See post 6 in the attached thread.
Comment 2 Michael Wagner 2006-01-08 19:44:26 UTC
also bug 1686 would be easier to solve if this code were in place.
Comment 3 KDF 2006-01-09 21:05:38 UTC
fred, do you think you could add this to the dispatcher?
Comment 4 Michael Wagner 2006-01-10 06:19:58 UTC
(In reply to comment #3)
> fred, do you think you could add this to the dispatcher?

Fred "invited" me to submit this enhancement, so I'm sure he has something up his sleeve.
Comment 5 Fred 2006-01-14 06:14:46 UTC
Request code done in 5637, including calls from Home.pm and SqueezeNetwork.pm. Did NOT change HTML to use (command/subcommand) mechanism.
Comment 6 Michael Wagner 2006-01-19 18:28:01 UTC
(In reply to comment #5)
> Request code done in 5637, including calls from Home.pm and SqueezeNetwork.pm.
> Did NOT change HTML to use (command/subcommand) mechanism.

Fred: I tested this tonight, and I can't get it to work. I can get the menu system forget to work, and it's instantaneous, as you would expect from any user issued command. But the same thing from the CLI does nothing. 

Is there a delay or something? If there is, there shouldn't be (not at this level of the code ... next level up, perhaps, in the code that detects that a player has gone away - as Dean said, burritos in the microwave shouldn't do it. But that's a heuristic for the next level up of code, which is going to turn around and call execute and expect it to just get done). 
Comment 7 Fred 2006-01-20 09:33:35 UTC
No delay. Works for me, but of course only for really gone players (i.e. if it still there and powered up it comes back immediately...)

Issue is currently is the CLI does not echo the client correctly (because it is gone, duh :-( ). Will fix now.
Comment 8 Michael Wagner 2006-01-20 09:56:38 UTC
(In reply to comment #7)
> No delay. Works for me, but of course only for really gone players (i.e. if it
> still there and powered up it comes back immediately...)

I tried it first with a winamp instance playing stream.mp3. It was really gone because I had closed it. Is the code different for stream players?

I also tried it with a real player, but can't recall if I disconnected it first. BTW, SB1s don't come back (at least, they don't any more ... I'm pretty sure they used to).
Comment 9 KDF 2006-01-20 20:55:23 UTC
code added to html pages to use the CLI version as of change 5748
Comment 10 Fred 2006-01-21 19:58:54 UTC
Thanks kdf. This is done and can be closed.
Comment 11 Michael Wagner 2006-01-26 05:56:32 UTC
Fred: Should I be seeing this in 6.2 or only in 6.5?
Comment 12 KDF 2006-01-26 09:27:03 UTC
only 6.5, as this is a new feature.