From: kaliko Date: Sat, 8 Apr 2023 13:32:13 +0000 (+0200) Subject: Fixed protocol version check for mlast X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;ds=inline;p=mpd-goodies.git Fixed protocol version check for mlast --- diff --git a/bin/mlast b/bin/mlast index e81892f..1ea8958 100755 --- a/bin/mlast +++ b/bin/mlast @@ -76,8 +76,8 @@ class MLast(musicpd.MPDClient): bucket = [] self.connect() version = self.mpd_version - if version[:4] not in ['0.21', '0.22']: - print('MPD version might be < 0.21, need filter') + if version[:4] in ['0.20', '0.19', '0.18', '0.17']: + print(f'MPD version might be < 0.21, need filter (got {version})') sys.exit(1) # Total number of tracks in library nb_files = int(self.stats()['songs'])