Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Get current song details from other app #488
Installation Method Used
I would love to make a lyrics app for tizonia and need to get the song detail, thus, tizonia need a way to export the current song detail somehow.
What do you think about this?
And thank you for this great great app.
Hi!, thanks for getting in touch.
I think this is a great idea. It would be awesome to have a lyrics option that could work with tizonia.
So right now the only RPC option available is MPRIS v2 (https://specifications.freedesktop.org/mpris-spec/latest/), out of which, only the following interfaces are implemented (see #66):
The Player interface contains a method called 'metadata' that would provide the information that you need. However, there is currently a bug that prevents it from being usable (see #433).
There is a Bash script called 'tizonia-remote' that allows you some basic control of the program, using the D-BUS. This is not distributed in the Bintray debs, but to try it, just download it from there and make it executable:
The D-BUS crash #433 is on my list for v0.15.0, so hopefully, I may have a fix for it soon.
But talking about RPC options, just to let you know, that going forward, I have plans to add a JSON-RPC interface to programmatically control Tizonia and give access to all its features from external programs (e.g. a REPL command-line cli, remote UIs, etc). But at the moment I'm busy with Pandora support, which is my main goal for the next release.
Having said all of that, I am definitely more than happy to discuss interfacing ideas or contributions of any kind in these areas.