void-packages/srcpkgs/bum/patches/mpd2-3.patch

18 lines
578 B
Diff
Raw Normal View History

2021-07-11 20:17:41 +02:00
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__":