void-packages/srcpkgs/bum/patches/mpd2-3.patch
2021-07-20 16:12:41 -03:00

18 lines
578 B
Diff

based on https://github.com/dylanaraps/bum/pull/24
--- a/bum/__main__.py
+++ b/bum/__main__.py
@@ -62,11 +62,8 @@ def main():
while True:
song.get_art(args.cache_dir, args.size, client)
display.launch(disp, args.cache_dir / "current.jpg")
- client.send_idle()
-
- if client.fetch_idle(["player"]):
- print("album: Received player event from mpd. Swapping cover art.")
- continue
+ client.idle("player")
+ print("album: Received player event from mpd. Swapping cover art.")
if __name__ == "__main__":