[Announce] mafw-trackinfo: dbus interface to song metadata
Ok. I have finally done what I promised. I have uploaded this to extra-devel.
Description: A dbus wrapper (event.d "daemon) around song metadata. The metadata for the currently playing song in MAFW is spread through several interfaces and signals. It is also lacking album art. This "daemon" processes these and presents a more sensible interface. The main benefit of this will be quick-widgets and queen beecons. I can now have a player widget for the built-in media player and/or the OMP. It should have minimal effect on battery usage an uses about 5MB of memory. The methods are Code:
dbus-send --print-reply --dest=com.marquarding.trackinfo / com.marquarding.trackinfo.GetArtistAlbumTitleArt Source: https://bitbucket.org/mmarquar/mafw-trackinfo |
Re: [Announce] mafw-trackinfo: dbus interface to song metadata
Hot.
Thanks for working on this. |
Re: [Announce] mafw-trackinfo: dbus interface to song metadata
Actually I forgot one goody.
Code:
dbus-send --print-reply --dest=com.marquarding.trackinfo / com.marquarding.trackinfo.GetArt string:<album-name> |
Re: [Announce] mafw-trackinfo: dbus interface to song metadata
BTW, if anybody wants any other related metadata exposed let me know.
|
Re: [Announce] mafw-trackinfo: dbus interface to song metadata
Good show, however 5MB is massively heavy just to get the track name.
What is the dbus call that returns the track name/artist in case I just wanted to sed/awk/grep my way to victory? |
Re: [Announce] mafw-trackinfo: dbus interface to song metadata
hey i cant find this in extras-devel
|
Re: [Announce] mafw-trackinfo: dbus interface to song metadata
Hi GreatGonzo. I have a question for you (or anyone else). I am using this command
dbus-send --print-reply --dest=com.marquarding.trackinfo / com.marquarding.trackinfo.GetArt string:<album-name> in queen beecon widget, and I have the result, but it shows the underlying information, rather than the actual art. For example method return sender=1.65- dest=1.305reply_serial=2string"/home/user/.cache/media-art/album-725ee9 etc etc etc ......jpeg" Also, with the other commands listed in this thread, I get the result, but it also shows all the string information as well, rather than just the track name for example. Any ideas. How can I single out the part of the result I want. Am I missing something or is this how the results are intended to be shown? Thanks for any help. |
Re: [Announce] mafw-trackinfo: dbus interface to song metadata
Quote:
anyway, you don't want to search trough 400 pages so, here is how i did it. AlbumArt Code:
dbus-send --print-reply --dest=com.marquarding.trackinfo / com.marquarding.trackinfo.GetArt | awk '{ FS="\\""} {print $2}' | tail -1 Code:
dbus-send --print-reply --dest=com.marquarding.trackinfo / com.marquarding.trackinfo.GetTitle | awk 'BEGIN{FS="\\""} {print $2}' | tail -1 Code:
dbus-send --print-reply --dest=com.marquarding.trackinfo / com.marquarding.trackinfo.GetArtist | awk 'BEGIN{ FS="\\""} {print $2}' | tail -1 Code:
dbus-send --print-reply --dest=com.marquarding.trackinfo / com.marquarding.trackinfo.GetAlbum | awk 'BEGIN{ FS="\\""} {print $2}' | tail -1 if you want the example, here is it i don't know if it's the best way, maybe there is another, but this one works for me |
Re: [Announce] mafw-trackinfo: dbus interface to song metadata
Quote:
Is there a reason for this? |
Re: [Announce] mafw-trackinfo: dbus interface to song metadata
Is there a way to toggle the pause/resume command on a single QBW ??
"I found it. Thanks " |
All times are GMT. The time now is 03:02. |
vBulletin® Version 3.8.8