Skip to content

Get another metadata #11

Description

@csipapicsa

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions