I am using python-mpd to fetch current playing song artist and title. I am able to do that successfully.
The problem is after I stop playing song using mpc stop and than try to fetch current playing song info it shows the last playing song info.
Get song info
>>> client.currentsong()['artist']
'Sean Paul feat. Alexis Jordan'
Now after I use mpc stop
>>> client.currentsong()['artist']
'Sean Paul feat. Alexis Jordan'
>>>
So, my question is how do I make sure that mpd is currently playing or stopped?
What I need is that after mpc stop when I try to fetch song info it should show None or is there any method like if mpd_playing().
I tried to look at the python-mpd script but no luck.
So here is the condition you need: