#!/usr/bin/env python3
# -*- coding: utf-8 -*-
-
-# Copyright (c) 2009,2010,2012,2019 kaliko <kaliko@azylum.org>
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
+# SPDX-FileCopyrightText: 2009,2010,2012,2019 kaliko <kaliko@azylum.org>
+# SPDX-License-Identifier: GPL-3.0-or-later
import argparse
import sys
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'])