GO BACK
Linux Media Players
This is the most recommended API for Linux users. It obtains information from any MPRIS compatible media player (MPRIS is a standard interface widely used for media players on Linux). All you may need to install are the following libraries, although they will probably be installed in your system already:
-
PyGI (not packaged on PyPi, you need to install it from your distribution’s repository - it’s usually called
python-gi
,python3-gobject
orpygobject
). Here’s a quick tutorial on how to install it on most systems. -
GLib. You most likely have it installed already.
Current limitations
- Spotify on Linux doesn’t currently support the MPRIS property
Position
. - Currently, changing players while the app is open won’t refresh the player to the last one.