badaix / snapcast

Synchronous multiroom audio player
GNU General Public License v3.0
6.21k stars 456 forks source link

shairport-sync flag error #622

Closed lealoureiro closed 4 years ago

lealoureiro commented 4 years ago

Hello,

After upgrading shairport-sync to lastest master branch, i can't start anymore AirPlay Stream:

May 19 21:29:03 leandro-homeserver snapserver[24731]: 2020-05-19 21-29-03 [Error] (AsioStream) Error during async wait: Operation canceled
May 19 21:29:03 leandro-homeserver snapserver[24731]: 2020-05-19 21-29-03 [Info] (AirplayStream) (Airplay) --get-coverart: unknown option
May 19 21:29:03 leandro-homeserver snapserver[24731]: 2020-05-19 21-29-03 [Error] (ProcessStream) Error while reading from stderr: End of file
May 19 21:29:03 leandro-homeserver snapserver[24731]: 2020-05-19 21-29-03 [Error] (AirplayStream) Error opening metadata pipe, retrying in 500ms. Error: assign: Bad file descriptor

Seems like they remove one of the flags...

badaix commented 4 years ago

I googled for you: seems you have to build it with --with-metadata:

--with-metadata to add support for Shairport Sync to pipe metadata to a compatible application of your choice. See https://github.com/mikebrady/shairport-sync-metadata-reader for a sample metadata reader.

lealoureiro commented 4 years ago

you mean the shairport-sync itself or change the flag in snapcast?

lealoureiro commented 4 years ago

it worked compiling shairport-sync with flag --with-metadata

but i also had to add --with-stdout and --with-pipe

badaix commented 4 years ago

Cool, I will update the readme accordingly