Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start listener without starting shairport-sync? #2

Open
domb84 opened this issue Dec 31, 2020 · 2 comments
Open

Start listener without starting shairport-sync? #2

domb84 opened this issue Dec 31, 2020 · 2 comments

Comments

@domb84
Copy link

domb84 commented Dec 31, 2020

This library seems great and does nearly exactly what I require, but I already have a service that controls shairport. When I start the listener using the below, it starts it's own shairport-sync daemon that then conflicts with my existing service.

Is there an option to just read the pipe? I can't find an example for that. I've tried all the listener options and it always starts up it's own daemon.

    def listener(self):
        listener = AirplayPipeListener()
        listener.bind(track_info=self.on_track_info)  # receive callbacks for metadata changes
        listener.start_listening()

@Schlaubischlump
Copy link
Owner

Schlaubischlump commented Dec 31, 2020

Glad you like the project!

Sadly there is no option, but you can either modify the code yourself or look at the fork of @htruong. He disabled the automatic start of the shairport client.

If I find the time, I will either add an option or only start the client if it isn't already running.

@domb84
Copy link
Author

domb84 commented Dec 31, 2020

Glad you like the project!

Sadly there is no option, but you can either modify the code yourself or look at the fork of @htruong. He disabled the automatic start of the shairport client.

If I find the time, I will either add an option or only start the client if it isn't already running.

Amazing! I'll look at that fork thank you. It's the last piece of the puzzle for my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants