]> kaliko git repositories - mpd-goodies.git/commitdiff
Fixed style
authorkaliko <kaliko@azylum.org>
Fri, 17 May 2019 10:02:16 +0000 (12:02 +0200)
committerkaliko <kaliko@azylum.org>
Fri, 17 May 2019 10:02:16 +0000 (12:02 +0200)
README.md
bin/mfade
bin/mlast

index 9a029f8a52430e99dc89c692b0cf504383879f95..4b5387857408530a1d68e1885d0f42e81a68cd1a 100644 (file)
--- 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
index 9627a44b67637b7befebe0c426d3a2d220ff213d..4b8a6a137710a15c70c117d64f5fed541cdec596 100755 (executable)
--- 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({
index b664aebccf8ac5b2d32a750ac08dc03a6bccf3f8..e4e483b06905e1a145d0a2f78edb11c97ec674a4 100755 (executable)
--- 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: