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

Get another metadata #11

Open
csipapicsa opened this issue Mar 5, 2024 · 1 comment
Open

Get another metadata #11

csipapicsa opened this issue Mar 5, 2024 · 1 comment

Comments

@csipapicsa
Copy link

csipapicsa commented Mar 5, 2024

Hi,

I try to get another metadata not just artist and title, but there is nothing else

from traktor_nowplaying import Listener

listener = Listener(port=7777, quiet=False)

def on_metadata(data):
    print(f"Artist: {data.get('artist')}")
    print(f"Title: {data.get('title')}")
    print(f"Tempo: {data.get('tempo')}")
    print(data)

listener.on_metadata = on_metadata
listener.start()

# Keep the program running to listen for broadcasts
while True:
    pass

Does Traktor not streaming it, or I can't get access? Thanks!

@radusuciu
Copy link
Owner

I'm not sure off the top of my head, but I can look into it. Have you verified that the track does have the metadata attributes you're trying to get?

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