# Getting currently playing song

**URL:** https://discourse.mopidy.com/t/getting-currently-playing-song/5400
**Category:** Help and support
**Created:** [March 14, 2022, 3:09am UTC](https://discourse.mopidy.com/t/getting-currently-playing-song/5400 "2022-03-14T03:09:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ashtf](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/ashtf/32/2227_2.png) [@Ashtf](https://discourse.mopidy.com/u/Ashtf)
#### Post date: [March 14, 2022, 3:09am UTC](https://discourse.mopidy.com/t/getting-currently-playing-song/5400/1 "2022-03-14T03:09:40Z")

</div>

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.

```auto
from mopidy_json_client import MopidyClient
mopidy = MopidyClient()

mopidy.playback.pause()

track = mopidy.playback.get_current_track()

print(track)

```

---

<div class="post-metadata">

### Author: ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/system/32/1_2.png) [@system](https://discourse.mopidy.com/u/system)
#### Post date: [September 12, 2022, 3:10pm UTC](https://discourse.mopidy.com/t/getting-currently-playing-song/5400/2 "2022-09-12T15:10:21Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
