mirror of
https://github.com/beetbox/beets.git
synced 2025-12-21 16:13:38 +01:00
Update discogs.py
This commit is contained in:
parent
2293e1e09d
commit
da0360bd90
1 changed files with 3 additions and 3 deletions
|
|
@ -57,7 +57,7 @@ class DiscogsPlugin(BeetsPlugin):
|
|||
'apisecret': 'plxtUTqoCzwxZpqdPysCwGuBSmZNdZVy',
|
||||
'tokenfile': 'discogs_token.json',
|
||||
'source_weight': 0.5,
|
||||
'change_va': False,
|
||||
'va_name': 'Various Artists',
|
||||
})
|
||||
self.config['apikey'].redact = True
|
||||
self.config['apisecret'].redact = True
|
||||
|
|
@ -225,8 +225,8 @@ class DiscogsPlugin(BeetsPlugin):
|
|||
albumtype = ', '.join(
|
||||
result.data['formats'][0].get('descriptions', [])) or None
|
||||
va = result.data['artists'][0]['name'].lower() == 'various'
|
||||
if va and self.config['change_va']:
|
||||
artist = 'Various Artists'
|
||||
if va:
|
||||
artist = self.config['va_name'].get()
|
||||
year = result.data['year']
|
||||
label = result.data['labels'][0]['name']
|
||||
mediums = len(set(t.medium for t in tracks))
|
||||
|
|
|
|||
Loading…
Reference in a new issue