From fd91ff3c183f3710aa062d67295939df35e4b19b Mon Sep 17 00:00:00 2001 From: kaliko Date: Fri, 17 May 2019 12:02:16 +0200 Subject: [PATCH] Fixed style --- README.md | 4 ++-- bin/mfade | 1 + bin/mlast | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9a029f8..4b53878 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@ A collection of commands to play with [MusicPlayerDaemon]: * Last modified artist/album/tracks * Crop the queue -Commands do not expose options to set MPD host|port, use MPD_HOST/MPD_PORT environment variables. -Defaults to /run/mpd/socket or localhost:6600 when no environment variables are set (cf. [python-musicpd]). +Commands do not expose options to set MPD host|port, use MPD_HOST/MPD_PORT environment variables. +MPD_HOST/MPD_PORT default to /run/mpd/socket or localhost:6600 when no environment variables are set (cf. [python-musicpd]). [MusicPlayerDaemon]: https://www.musicpd.org/ [python-musicpd]: https://kaliko.gitlab.io/python-musicpd diff --git a/bin/mfade b/bin/mfade index 9627a44..4b8a6a1 100755 --- a/bin/mfade +++ b/bin/mfade @@ -45,6 +45,7 @@ this command to work properly. Set MPD host/port in env. var""" + class Sleep(musicpd.MPDClient): """""" script_info = dict({ diff --git a/bin/mlast b/bin/mlast index b664aeb..e4e483b 100755 --- a/bin/mlast +++ b/bin/mlast @@ -112,7 +112,8 @@ class MLast(musicpd.MPDClient): _ = [(f.get('artist'),) for f in files] bucket = unic(bucket + _) elif self.args.track: - _ = [(f.get('artist'), f.get('album'), f.get('title')) for f in files] + _ = [(f.get('artist'), f.get('album'), f.get('title')) + for f in files] # bucket = unic(bucket + _) bucket = unic(_ + bucket) if len(bucket) >= self.args.n: -- 2.39.5