philippe44 / AirConnect

Use AirPlay to stream to UPnP/Sonos & Chromecast devices
Other
3.6k stars 219 forks source link

Allow for not appending '+' to the name of clients #493

Closed sidevesh closed 1 year ago

philippe44 commented 1 year ago

you can create a config file and there you name each player how you want

sidevesh commented 1 year ago

yeah, but it would be helpful to disable the appending of '+' to the name behavior globally, if you think this makes sense then I can add an attribute on the common section of config to disable that behavior and send a PR.

Thanks btw for your project, has been working great with my MacBook!

philippe44 commented 1 year ago

ok, I've added something very simple using '-N' (no config file equivalent) where you can use a C string format %s to do a bit of transformation. Yes, it can be dangerous and no it's not a public API so it's not a big danger and no I'm not going to add a regex :smile:

sidevesh commented 1 year ago

cool cool, can you give me an example usage I will try it out ?

philippe44 commented 1 year ago

like -N "I-don-t-like-the-plus-%s-but-I-like-this"

sidevesh commented 1 year ago

Is -N available on the latest release ? Trying to use -N just prints help

sidevesh commented 1 year ago

Ah I see you pushed it it the 1.3.0 commits

sidevesh commented 1 year ago

This does not seem to work for me, if I use -N "%s" then I get some JSON stringified as the name of the AirPlay speakers rather

MKReyesH commented 10 months ago

This does not seem to work for me, if I use -N "%s" then I get some JSON stringified as the name of the AirPlay speakers rather

I have tried the same and it is not working for me neither

Captura de pantalla 2024-01-22 a las 17 35 09