ebaauw / homebridge-music

Homebridge plugin for iTunes with AirPlay speakers
Apache License 2.0
93 stars 5 forks source link

Since updating to v0.2.17 Airfoil Speakers Stop working #19

Closed yaggayoyo closed 4 years ago

yaggayoyo commented 4 years ago

I am an AirFoil user. Seems the apple script is failing. See below.

[3/14/2020, 3:53:55 PM] [Music] applescript getState(false): execution error: Script Editor got an error: Can’t get every «class cAPD». (-1728)

[3/14/2020, 3:53:55 PM] [Music] command: set lib to (load script "/usr/local/lib/node_modules/homebridge-music/scripts/Music.scpt") tell lib to getState(false) [3/14/2020, 3:54:00 PM] [Music] applescript getState(false): execution error: Script Editor got an error: Can’t get every «class cAPD». (-1728)

[3/14/2020, 3:54:00 PM] [Music] command: set lib to (load script "/usr/local/lib/node_modules/homebridge-music/scripts/Music.scpt") tell lib to getState(false)

yaggayoyo commented 4 years ago

Update----

Rolled back to v0.2.16 and all is well with the world again.

ebaauw commented 4 years ago

That's a bug alright. homebridge-music overrides the script setting in config.json with Music, which doesn't run on pre-Catalina versions of macOS.

Don't know why GitHub decided to close this issue, in my name no less - apparently it's scanning the commit text.

v0.2.18 should be working again. Notice I did change the script names, see https://github.com/ebaauw/homebridge-music/releases.