Quote:
Originally Posted by Jamwa
Perhaps you could use qdbus. this is a sample output in my case:
Code:
sh-4.0$ qdbus org.kde.amarok /Player GetMetadata
album: Unbekanntes Album (16.01.2007 10:44:12)
artist: BoneyM.
arturl:
audio-bitrate: 128
audio-samplerate: 44100
comment:
genre: Unbekannt
location: file:///windows/jukebox/BoneyM/BoneyM%20-%20Happy%20Song.mp3
mtime: 238000
rating: 0
time: 238
title: Happy Song
tracknumber: 12
year: 0
sh-4.0$
Grep the output to get what you want:
Code:
sh-4.0$ qdbus org.kde.amarok /Player GetMetadata | grep artist
artist: BoneyM.
sh-4.0$ qdbus org.kde.amarok /Player GetMetadata | grep title
title: Happy Song
sh-4.0$
|
This is useful Jamwa Thanks.
I am setting up Conky to show the current track info. However when I do
qdbus org.kde.amarok /Player GetMetadata | grep album
I also get arturl: which is the album art location. Am I doing it wrong, I doubt I am as other lines for artist and title etc. work, or is it a bug? Any suggestions?