> I use the CAUTH as I push the new track to Squeezecentre via the web
> api, I will look at other methods CLI maybe?  but this one was quick
> and worked :)

Believe me: using the CLI your submitting the new track to SC would be
reduced to a one liner ;-). Instead of sending the params to the web
interface (p0=playlist&p1=add&p2=$element) you can use the same as a
CLI command:

$client->execute(["playlist", "add", $element]);

Done.

I did the above changes to your file, as a proof of concept. Please see
the attached file.

Also you should try to use some of the work which is already done in
the MIP plugin to verify whether MIP is available at all, port number,
mixer parameters etc. It's all there. And SC's own http request object
instead of LWP.


+-------------------------------------------------------------------+
|Filename: Plugin.pm                                                |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=5333|
+-------------------------------------------------------------------+

-- 
mherger

Michael

-----------------------------------------------------------------
http://www.herger.net/slim-plugins - AlbumReview, Biography,
MusicInfoSCR
------------------------------------------------------------------------
mherger's Profile: http://forums.slimdevices.com/member.php?userid=50
View this thread: http://forums.slimdevices.com/showthread.php?t=49226

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to