Kodi Community Forum
[ARCHIVED - WON'T UPDATE] XSqueeze - Squeezebox player for XBMC - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [ARCHIVED - WON'T UPDATE] XSqueeze - Squeezebox player for XBMC (/showthread.php?tid=122199)



RE: [RELEASE][ALPHA] XSqueeze - Squeezebox control in XBMC, local playback w. Squeezeplay - beefystripper - 2012-03-17

Strange, when I try to installe squeeze (0.4.2) from your latest repo it says addon status = damage.


[RELEASE][ALPHA] XSqueeze - Squeezebox control in XBMC, local playback w. Squeezeplay - bossanova808 - 2012-03-17

Your script.artistslideshow will be out of date I'd say. Check your logs too


RE: [RELEASE][ALPHA] XSqueeze - Squeezebox control in XBMC, local playback w. Squeezeplay - beefystripper - 2012-03-17

Hi

Latest script.artistslideshow did the trick. Thanks!


[RELEASE][ALPHA] XSqueeze - Squeezebox control in XBMC, local playback w. Squeezeplay - bossanova808 - 2012-03-18

So it works as a controller then? It should pull the artist thingy automatically, I don't get why it doesn't but I think the dependencies side of addons is not great yet... Certainly shouldn't say 'damaged' anyway...


RE: [RELEASE][ALPHA] XSqueeze - Squeezebox control in XBMC, local playback w. Squeezeplay - beefystripper - 2012-03-18

Yes the controller is working on iOS. But it would have been nice to manage the songs with playback within the xbmc as well :-). Great addon anyway!


RE: [RELEASE][ALPHA] XSqueeze - Squeezebox control in XBMC, local playback w. Squeezeplay - bossanova808 - 2012-03-19

Well I believe this pull request, which *might* make Eden, will potentially open up the ability to hand the stream off to XBMC for playback more easily/for more formats, so a more traditional plugin type approach might then be feasible (you'd lose decent synchronisation, though, I expect, so the idea would be to have both options available...)

I haven't really looked at it much though, how this would work. But music choosing, one way or another, is definitely something I want to look at if/when I get any time.

https://github.com/xbmc/xbmc/pull/777





RE: [RELEASE][ALPHA] XSqueeze - Squeezebox control in XBMC, local playback w. Squeezeplay - CreasyMonster - 2012-03-19

Excellent XMBC program that I have been using on a MacMini running XBMC Eden on OSX. It is working very well and Squeezeslave is also syncing very well with a number of Squeezeboxes around my house. My only problem is that I am using a new style Apple Remote (Silver) and want to get the 'Menu' button to exit Xsqueeze (back to the XBMC Program Menu). Currently my only way out of Xsqueeze is pressing my right-mouse button.

I've tried to change the setup within actionmap.py and have successfully set up/down as vol+/- and left/right as rev/fwd (my preference)Smile but cannot get the 'Menu' button to action 'ACTION_PREVIOUS_MENU'.Sad

I'm sure I'm missing something simple... please help.Huh

Ps. I've got the Apple Remote 'Select' button to Play/Pause but ideally want the Apple Remote 'Play/Pause' button to do this. (I believe the 'Play/Pause' button is an additional code to that of the original 'white' Apple Remote).

Cheers,

CM


RE: [RELEASE][ALPHA] XSqueeze - Squeezebox control in XBMC, local playback w. Squeezeplay - bossanova808 - 2012-03-20

IN PREPARATION FOR SUBMITTING XSQUEEZE TO THE OFFICIAL REPO, I am re-organising my repo so please note for now to get XSqueeze the easiest way is to just get the .zip directly

http://bossanova808-xbmc-addons.googlecode.com/git/repository-downloads/script.xsqueeze/script.xsqueeze-0.4.3.zip





On the apple remote, if you uncomment the lines 128 and 129 of

\script.xsqueeze\resources\lib\classes\NowPlayingWindow.py

Code:
#if actionNum != 0:
    #  Logger.log("Handling action id: " + str(actionNum) +  " Name: " + actionName + " SqueezeCode if any: " + actionSqueeze)

and then re-run XSqueeze and try the various keys on your remote, then it should print the action codes coming through and gives us some clues - do that and post your logs....



RE: [RELEASE][ALPHA] XSqueeze - Squeezebox control in XBMC, local playback w. Squeezeplay - CreasyMonster - 2012-03-20

Attached is the relevant section of xbmc.log. I couldn't find any debug appear with your debug strings even when having the log file live and with debug enabled on XBMC. I've attached the debug just in case I am missing something.
All the log file was showing was the following repeating the whole time:

18:05:07 T:2959212544 ERROR: File "/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.xsqueeze/resources/lib/classes/NowPlayingWindow.py", line 309, in updatePlaylistDetails
18:05:07 T:2959212544 ERROR: tracknum = str(self.playlistDetails[trackOffset]['tracknum'])
18:05:07 T:2959212544 ERROR: KeyError: 'tracknum'
18:05:07 T:2959212544 NOTICE: XSqueeze-0.4.3: Exception!
18:05:07 T:2959212544 ERROR: Traceback (most recent call last):
18:05:07 T:2959212544 ERROR: File "/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.xsqueeze/resources/lib/classes/NowPlayingWindow.py", line 309, in updatePlaylistDetails
18:05:07 T:2959212544 ERROR: tracknum = str(self.playlistDetails[trackOffset]['tracknum'])
18:05:07 T:2959212544 ERROR: KeyError: 'tracknum'
18:05:07 T:2959212544 NOTICE: XSqueeze-0.4.3: Exception!
18:05:07 T:2959212544 ERROR: Traceback (most recent call last):
18:05:07 T:2959212544 ERROR: File "/Users/grahamcreasy/Library/Application Support/XBMC/addons/script.xsqueeze/resources/lib/classes/NowPlayingWindow.py", line 309, in updatePlaylistDetails
18:05:07 T:2959212544 ERROR: tracknum = str(self.playlistDetails[trackOffset]['tracknum'])
18:05:07 T:2959212544 ERROR: KeyError: 'tracknum'
18:05:07 T:2959212544 NOTICE: XSqueeze-0.4.3: Exception!
18:05:07 T:2959212544 ERROR: Traceback (most recent call last):


Cheers,

CM


RE: [RELEASE][ALPHA] XSqueeze - Squeezebox control in XBMC, local playback w. Squeezeplay - CreasyMonster - 2012-03-20

Sorry, my mistake. Debug logging is working.

18:34:18 T:2953850880 NOTICE: XSqueeze-0.4.3: Handling action id: 4 Name: ACTION_MOVE_DOWN SqueezeCode if any: voldown
18:34:18 T:2953850880 NOTICE: XSqueeze-0.4.3: SqueezePlayer Action: voldown
18:34:29 T:2953850880 NOTICE: XSqueeze-0.4.3: Handling action id: 3 Name: ACTION_MOVE_UP SqueezeCode if any: volup
18:34:29 T:2953850880 NOTICE: XSqueeze-0.4.3: SqueezePlayer Action: volup
18:34:29 T:2953850880 NOTICE: XSqueeze-0.4.3: Handling action id: 3 Name: ACTION_MOVE_UP SqueezeCode if any: volup
18:34:29 T:2953850880 NOTICE: XSqueeze-0.4.3: SqueezePlayer Action: volup
18:34:32 T:2953850880 NOTICE: XSqueeze-0.4.3: Handling action id: 1 Name: ACTION_MOVE_LEFT SqueezeCode if any: rew.hold
18:34:32 T:2953850880 NOTICE: XSqueeze-0.4.3: SqueezePlayer Action: rew.hold
18:34:32 T:2953850880 NOTICE: XSqueeze-0.4.3: Handling action id: 1 Name: ACTION_MOVE_LEFT SqueezeCode if any: rew.hold
18:34:32 T:2953850880 NOTICE: XSqueeze-0.4.3: SqueezePlayer Action: rew.hold
18:34:32 T:2953850880 NOTICE: XSqueeze-0.4.3: Handling action id: 1 Name: ACTION_MOVE_LEFT SqueezeCode if any: rew.hold
18:34:32 T:2953850880 NOTICE: XSqueeze-0.4.3: SqueezePlayer Action: rew.hold
18:34:32 T:2953850880 NOTICE: XSqueeze-0.4.3: Handling action id: 1 Name: ACTION_MOVE_LEFT SqueezeCode if any: rew.hold
18:34:32 T:2953850880 NOTICE: XSqueeze-0.4.3: SqueezePlayer Action: rew.hold
18:34:34 T:2953850880 NOTICE: XSqueeze-0.4.3: Handling action id: 2 Name: ACTION_MOVE_RIGHT SqueezeCode if any: fwd.hold
18:34:34 T:2953850880 NOTICE: XSqueeze-0.4.3: SqueezePlayer Action: fwd.hold
18:34:34 T:2953850880 NOTICE: XSqueeze-0.4.3: Handling action id: 2 Name: ACTION_MOVE_RIGHT SqueezeCode if any: fwd.hold
18:34:34 T:2953850880 NOTICE: XSqueeze-0.4.3: SqueezePlayer Action: fwd.hold
18:34:34 T:2953850880 NOTICE: XSqueeze-0.4.3: Handling action id: 2 Name: ACTION_MOVE_RIGHT SqueezeCode if any: fwd.hold
18:34:34 T:2953850880 NOTICE: XSqueeze-0.4.3: SqueezePlayer Action: fwd.hold
18:34:35 T:2953850880 NOTICE: XSqueeze-0.4.3: Handling action id: 2 Name: ACTION_MOVE_RIGHT SqueezeCode if any: fwd.hold
18:34:35 T:2953850880 NOTICE: XSqueeze-0.4.3: SqueezePlayer Action: fwd.hold
18:34:35 T:2953850880 NOTICE: XSqueeze-0.4.3: Handling action id: 2 Name: ACTION_MOVE_RIGHT SqueezeCode if any: fwd.hold
18:34:35 T:2953850880 NOTICE: XSqueeze-0.4.3: SqueezePlayer Action: fwd.hold
18:35:10 T:2953850880 NOTICE: XSqueeze-0.4.3: Handling action id: 7 Name: ACTION_SELECT_ITEM SqueezeCode if any: pause.single
18:35:10 T:2953850880 NOTICE: XSqueeze-0.4.3: SqueezePlayer Action: pause.single
18:43:49 T:2695669056 DEBUG: ProcessMouse: trying mouse action rightclick
18:43:49 T:2965516288 NOTICE: XSqueeze-0.4.3: Handling action id: 10 Name: ACTION_PREVIOUS_MENU SqueezeCode if any: arrow_left
18:43:49 T:2965516288 NOTICE: XSqueeze-0.4.3: XBMC Action: Close
exit only on right mouse button

but xsqueeze is not recognising 'Menu' or 'Play/Pause' which should be Handling action id: 6 and 12 respectively, I believe.

CM


RE: [RELEASE][ALPHA] XSqueeze - Squeezebox control in XBMC, local playback w. Squeezeplay - CreasyMonster - 2012-03-20

Some more info for you on the Apple remote. Uncommenting line 123 within \script.xsqueeze\resources\lib\classes\NowPlayingWindow.py (Logger.log("Not handling eventid " + str(action.getId()))) enabled the following debug statements in xbmc.log:

18:53:22 T:2953850880 NOTICE: XSqueeze-0.4.3: Not handling eventid 107
18:53:22 T:2953850880 NOTICE: Previous line repeats 3 times.

corresponding to 'Menu' button pressed 4 times

and

18:53:24 T:2953850880 NOTICE: XSqueeze-0.4.3: Not handling eventid 79
18:53:25 T:2966130688 NOTICE: Previous line repeats 3 times.

corresponding to 'Play/Pause' button (extra button on silver apple remote) pressed 4 times

hope this helps


RE: [RELEASE][ALPHA] XSqueeze - Squeezebox control in XBMC, local playback w. Squeezeplay - bossanova808 - 2012-03-21

Yeah ok that second bit is what I need, sorry, I was in a hurry the other day.

The actions in XBMC are here:
https://github.com/xbmc/xbmc/blob/master/xbmc/guilib/Key.h

Ok - I don't think you're right on 107 - that's mouse move - #define ACTION_MOUSE_MOVE 107 - unlikely to be the menu button - can you test that again?


#define ACTION_PLAYER_PLAY 79

...that one makes more sense.




RE: [RELEASE][ALPHA] XSqueeze - Squeezebox control in XBMC, local playback w. Squeezeplay - bossanova808 - 2012-03-21

I will map ACTION_PLAYER_PLAY to play.single for the squeezebox CLI

(as select is currently:

'ACTION_SELECT_ITEM' :'play.single',
'ACTION_PLAYER_PLAY' :'play.single',

)

...but I need to know the other code (and wait on the XBMC official repo thing to work itself out) before I can fix the other one...shouldn't be hard though.



RE: [RELEASE][ALPHA] XSqueeze - Squeezebox control in XBMC, local playback w. Squeezeplay - FSM_ - 2012-03-21

Hi there

This looks like a geat addon but I cannot get it to work.

I am running Openelec on an Acer Aspire One netbook.

Whenever I try the installed Xsqueeze (used the zip in a recent posting here) I get script failed. I have also tried to run squeezeslave from the command line (after chmod 755) it complains about a dependency on ALSA that it can'y find. I'm not sure if I'm dealing 2 seperate issues or not.

This is the tail of the xbmc log file:

Code:
16:04:20 T:2780867440 M:438849536   ERROR: WEATHER: Unable to get data: Invalid License Key.
16:04:23 T:2904931184 M:438640640 WARNING: CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn
16:04:29 T:2845907824 M:438177792 WARNING: Previous line repeats 1 times.
16:04:29 T:2845907824 M:438177792  NOTICE: -->Python Interpreter Initialized<--
16:04:30 T:2845907824 M:438067200   ERROR: Error Type: <type 'exceptions.TypeError'>
16:04:30 T:2845907824 M:438067200   ERROR: Error Contents: Required argument 'id' (pos 1) not found
16:04:30 T:2845907824 M:438067200   ERROR: Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/script.xsqueeze/default.py", line 12, in <module>
                                                import constants
                                              File "/storage/.xbmc/addons/script.xsqueeze/constants.py", line 14, in <module>
                                                __addon__       = xbmcaddon.Addon()
                                            TypeError: Required argument 'id' (pos 1) not found
16:04:42 T:2845907824 M:437628928  NOTICE: -->Python Interpreter Initialized<--
16:04:42 T:2845907824 M:437628928   ERROR: Error Type: <type 'exceptions.TypeError'>
16:04:42 T:2845907824 M:437628928   ERROR: Error Contents: Required argument 'id' (pos 1) not found
16:04:42 T:2845907824 M:437628928   ERROR: Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/script.xsqueeze/default.py", line 12, in <module>
                                                import constants
                                              File "/storage/.xbmc/addons/script.xsqueeze/constants.py", line 14, in <module>
                                                __addon__       = xbmcaddon.Addon()
                                            TypeError: Required argument 'id' (pos 1) not found
16:12:12 T:2904931184 M:436445184 WARNING: CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn
16:13:03 T:2812337008 M:435707904  NOTICE: -->Python Interpreter Initialized<--
16:13:04 T:2812337008 M:435699712   ERROR: Error Type: <type 'exceptions.TypeError'>
16:13:04 T:2812337008 M:435699712   ERROR: Error Contents: Required argument 'id' (pos 1) not found
16:13:04 T:2812337008 M:435699712   ERROR: Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/script.xsqueeze/default.py", line 12, in <module>
                                                import constants
                                              File "/storage/.xbmc/addons/script.xsqueeze/constants.py", line 14, in <module>
                                                __addon__       = xbmcaddon.Addon()
                                            TypeError: Required argument 'id' (pos 1) not found
16:13:44 T:2940173168 M:435462144 WARNING: CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn
16:13:47 T:2845907824 M:435318784  NOTICE: -->Python Interpreter Initialized<--
16:13:47 T:2845907824 M:435318784   ERROR: Error Type: <type 'exceptions.TypeError'>
16:13:47 T:2845907824 M:435318784   ERROR: Error Contents: Required argument 'id' (pos 1) not found
16:13:47 T:2845907824 M:435318784   ERROR: Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/script.xsqueeze/default.py", line 12, in <module>
                                                import constants
                                              File "/storage/.xbmc/addons/script.xsqueeze/constants.py", line 14, in <module>
                                                __addon__       = xbmcaddon.Addon()
                                            TypeError: Required argument 'id' (pos 1) not found



RE: [RELEASE][ALPHA] XSqueeze - Squeezebox control in XBMC, local playback w. Squeezeplay - CreasyMonster - 2012-03-21

Quote:Ok - I don't think you're right on 107 - that's mouse move - #define ACTION_MOUSE_MOVE 107 - unlikely to be the menu button - can you test that again?


My mistake, using the mouse while logging.Tongue

Actual Apple Remote 'Menu' button error code is:

17:47:25 T:2959818752 NOTICE: XSqueeze-0.4.3: Not handling eventid 92

Hope this helps.

CM