I am trying to get the currently playing song from the mopidd client running from my raspberry pi with some python running on said pi. I have tried to get it to work in this way, and it throws no errors, just nothing is printing. Could anyone provide me with help? Also, I know that it is connected properly to the mopidy because when run the pausing code works.
from mopidy_json_client import MopidyClient
mopidy = MopidyClient()
mopidy.playback.pause()
track = mopidy.playback.get_current_track()
print(track)