Change minimum discogs_client version to 2.3.15

This commit is contained in:
ghbrown 2023-03-10 15:28:29 -06:00
parent bad541e2c4
commit f1b7832d52
2 changed files with 5 additions and 5 deletions

View file

@ -69,9 +69,9 @@ class DiscogsPlugin(BeetsPlugin):
self.register_listener('import_begin', self.setup) self.register_listener('import_begin', self.setup)
def check_discogs_client(self): def check_discogs_client(self):
"""Ensure python3-discogs-client version >= 2.3.10 """Ensure python3-discogs-client version >= 2.3.15
""" """
dc_min_version = [2, 3, 10] dc_min_version = [2, 3, 15]
dc_version = [int(elem) for elem in dc_string.split('.')] dc_version = [int(elem) for elem in dc_string.split('.')]
min_len = min(len(dc_version), len(dc_min_version)) min_len = min(len(dc_version), len(dc_min_version))
gt_min = [(elem > elem_min) for elem, elem_min in gt_min = [(elem > elem_min) for elem, elem_min in
@ -79,7 +79,7 @@ class DiscogsPlugin(BeetsPlugin):
dc_min_version[:min_len])] dc_min_version[:min_len])]
if True not in gt_min: if True not in gt_min:
self._log.warning(('python3-discogs-client version should be ' self._log.warning(('python3-discogs-client version should be '
'>= 2.3.10')) '>= 2.3.15'))
def setup(self, session=None): def setup(self, session=None):
"""Create the `discogs_client` field. Authenticate if necessary. """Create the `discogs_client` field. Authenticate if necessary.

View file

@ -111,7 +111,7 @@ setup(
'requests_oauthlib', 'requests_oauthlib',
'reflink', 'reflink',
'rarfile', 'rarfile',
'python3-discogs-client', 'python3-discogs-client>=2.3.15',
'py7zr', 'py7zr',
], ],
'lint': [ 'lint': [
@ -139,7 +139,7 @@ setup(
'embedart': ['Pillow'], 'embedart': ['Pillow'],
'embyupdate': ['requests'], 'embyupdate': ['requests'],
'chroma': ['pyacoustid'], 'chroma': ['pyacoustid'],
'discogs': ['python3-discogs-client>=2.3.10'], 'discogs': ['python3-discogs-client>=2.3.15'],
'beatport': ['requests-oauthlib>=0.6.1'], 'beatport': ['requests-oauthlib>=0.6.1'],
'kodiupdate': ['requests'], 'kodiupdate': ['requests'],
'lastgenre': ['pylast'], 'lastgenre': ['pylast'],