home
/
dev
/
repositories
/
mpd-goodies.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5ad05d
)
Fixed protocol version check for mlast
dev
author
kaliko <kaliko@azylum.org>
Sat, 8 Apr 2023 13:32:13 +0000
(15:32 +0200)
committer
kaliko <kaliko@azylum.org>
Sat, 8 Apr 2023 13:32:13 +0000
(15:32 +0200)
bin/mlast
patch
|
blob
|
history
diff --git
a/bin/mlast
b/bin/mlast
index e81892f2d47a41e0c9d6b56820288d35a16b3218..1ea8958ecb56d9661da2f0058f049ff164a3a86b 100755
(executable)
--- 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'])