* 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
Set MPD host/port in env. var"""
+
class Sleep(musicpd.MPDClient):
""""""
script_info = dict({
_ = [(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: