mirror of
https://github.com/beetbox/beets.git
synced 2025-12-25 01:53:31 +01:00
Discogs: option to change 'various' album artist to 'Various Artists' (Musicbrainz naming)
Just a simple config option to change 'various' album artist to the one that MusicBrainz uses: Various Artists.
This commit is contained in:
parent
38edb18a74
commit
2293e1e09d
1 changed files with 3 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ class DiscogsPlugin(BeetsPlugin):
|
|||
'apisecret': 'plxtUTqoCzwxZpqdPysCwGuBSmZNdZVy',
|
||||
'tokenfile': 'discogs_token.json',
|
||||
'source_weight': 0.5,
|
||||
'change_va': False,
|
||||
})
|
||||
self.config['apikey'].redact = True
|
||||
self.config['apisecret'].redact = True
|
||||
|
|
@ -224,6 +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'
|
||||
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