mirror of
https://github.com/beetbox/beets.git
synced 2025-12-09 18:12:19 +01:00
Merge pull request #1692 from kooimens/patch-2
Discogs: change album artist to musicbrainz naming
This commit is contained in:
commit
7413e17782
3 changed files with 14 additions and 0 deletions
|
|
@ -56,6 +56,7 @@ class DiscogsPlugin(BeetsPlugin):
|
|||
'apisecret': 'plxtUTqoCzwxZpqdPysCwGuBSmZNdZVy',
|
||||
'tokenfile': 'discogs_token.json',
|
||||
'source_weight': 0.5,
|
||||
'va_name': 'Various Artists',
|
||||
})
|
||||
self.config['apikey'].redact = True
|
||||
self.config['apisecret'].redact = True
|
||||
|
|
@ -223,6 +224,8 @@ class DiscogsPlugin(BeetsPlugin):
|
|||
albumtype = ', '.join(
|
||||
result.data['formats'][0].get('descriptions', [])) or None
|
||||
va = result.data['artists'][0]['name'].lower() == 'various'
|
||||
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))
|
||||
|
|
|
|||
|
|
@ -31,6 +31,9 @@ Fixes:
|
|||
* :doc:`/plugins/metasync`: Fix a crash when syncing with recent versions of
|
||||
iTunes. :bug:`1700`
|
||||
* :doc:`/plugins/duplicates`: Fix a crash when merging items. :bug:`1699`
|
||||
* :doc:`/plugins/discogs`: New config option (va_name) to change the default
|
||||
album artist name if album is V.A. The default is changed to 'Various Artists'
|
||||
to be the same as MusicBrainz.
|
||||
|
||||
|
||||
1.3.15 (October 17, 2015)
|
||||
|
|
|
|||
|
|
@ -25,6 +25,14 @@ MusicBrainz.
|
|||
If you have a Discogs ID for an album you want to tag, you can also enter it
|
||||
at the "enter Id" prompt in the importer.
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
To configure the plugin, make a ``discogs:`` section in your configuration
|
||||
file. The available options are:
|
||||
|
||||
- **va_name**: Change the name of the albumartist if an album is V.A.
|
||||
Default: ``'Various Artists'`` (Same as MusicBrainz).
|
||||
|
||||
Troubleshooting
|
||||
---------------
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue