diff --git a/beetsplug/discogs.py b/beetsplug/discogs.py index d8568bfd1..c19e65a2f 100644 --- a/beetsplug/discogs.py +++ b/beetsplug/discogs.py @@ -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)) diff --git a/docs/changelog.rst b/docs/changelog.rst index ac4202561..c85644062 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -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) diff --git a/docs/plugins/discogs.rst b/docs/plugins/discogs.rst index 038718f9b..2961bb3bb 100644 --- a/docs/plugins/discogs.rst +++ b/docs/plugins/discogs.rst @@ -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 ---------------