Commit Graph

3 Commits

Author SHA1 Message Date
Kasper 5ca27551da
Fixes for the playerctl_lib signals (#77)
* Only send artUrl to the signal if it's not empty

* Fix for double signals
What I've found while using dbus-monitor is that playerctl sends a bunch of messages whenever media is changed, with the first one always having the artUrl empty.
If the media does have an artUrl, the next messages will contain the artUrl resulting in artUrl ~= last_artUrl becoming true and triggering another signal
The hacky method in the commit will only trigger a new signal if artUrl is not empty, or on the second message sent (as some media don't provide any art)

* Revert "Only send artUrl to the signal if it's not empty"

This reverts commit e74671094a.

* Fix artUrl staying the same when the new value is empty

* Revert "Fix artUrl staying the same when the new value is empty"

This reverts commit aa4ddbe863.

* Fix artUrl staying the same again

* Prevent signal with no information from being emitted

* A better workaround for the double signal issue with YouTube
2021-07-29 08:54:37 -07:00
HumblePresent ae211c2cae
Cleanup of some global functions in playerctl lib backend (#61) 2021-05-26 00:10:30 -07:00
HumblePresent fb8bf62fae
Old playerctl cli backend added as option (#49)
* Old playerctl cli backend added as option

* Move files into directory and only require playerctl lib on enable

* Added wrapper functions to select backend based on args

* Switched 'player_stopped' signal to 'no_players' in CLI backend

* Added support for setting interval directly in enable() for CLI backend

* Update docs for both backends
2021-04-24 02:37:06 -07:00