Getting current played file name

Need help with MPD?
Post Reply
Sogeking
Posts: 2
Joined: February 8th, 2018, 2:09 pm

Getting current played file name

Post by Sogeking » February 8th, 2018, 2:16 pm

Hi,
I'm working with mpc and i want to write on a file the filename currently played by mpd. I'm only able to get the Title. But that wasn't what I'm looking for.

Example:
if i do : mpc add migliore.mp3
and then i do : mpc current i get "Giorgia - il mio giorno migliore" wich is the artist and the title of the song.
I really need to write in a file "migliore.mp3".

Sorry for my english. Hope it is clear.
Thanks

max
Forum team
Posts: 697
Joined: January 15th, 2013, 3:43 pm

Re: Getting current played file name

Post by max » February 8th, 2018, 2:23 pm

mpc current -f %file%

Sogeking
Posts: 2
Joined: February 8th, 2018, 2:09 pm

Re: Getting current played file name

Post by Sogeking » February 8th, 2018, 2:24 pm

Wow! That was fast!
Totally saved my life!

Post Reply