From 795d1e267d33c51397b1c06258075cfed0fbafbb Mon Sep 17 00:00:00 2001 From: kaliko Date: Sat, 8 Apr 2023 15:32:13 +0200 Subject: [PATCH] Fixed protocol version check for mlast --- bin/mlast | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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']) -- 2.39.5