Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion beetsplug/beatport.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

import beets
import beets.ui
from beets import config
from beets.autotag.hooks import AlbumInfo, TrackInfo
from beets.metadata_plugins import MetadataSourcePlugin
from beets.util import unique_list
Expand Down Expand Up @@ -459,7 +460,7 @@ def _get_album_info(self, release: BeatportRelease) -> AlbumInfo:
va = release.artists is not None and len(release.artists) > 3
artist, artist_id = self._get_artist(release.artists)
if va:
artist = "Various Artists"
artist = config["va_name"].as_str()
tracks: list[TrackInfo] = []
if release.tracks is not None:
tracks = [self._get_track_info(x) for x in release.tracks]
Expand Down
8 changes: 7 additions & 1 deletion beetsplug/musicbrainz.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,13 @@ def album_info(self, release: JSONDict) -> beets.autotag.hooks.AlbumInfo:
)
info.va = info.artist_id == VARIOUS_ARTISTS_ID
if info.va:
info.artist = config["va_name"].as_str()
va_name = config["va_name"].as_str()
info.artist = va_name
info.artist_sort = va_name
info.artists = [va_name]
info.artists_sort = [va_name]
info.artist_credit = va_name
info.artists_credit = [va_name]
info.asin = release.get("asin")
info.releasegroup_id = release["release-group"]["id"]
info.albumstatus = release.get("status")
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ Bug fixes
different providers share the same ID. :bug:`6178` :bug:`6181`
- :doc:`plugins/mbsync` and :doc:`plugins/missing` now use each item's stored
``data_source`` for ID lookups, with a fallback to ``MusicBrainz``.
- :doc:`plugins/musicbrainz`: Use ``va_name`` config for ``albumartist_sort``,
``albumartists_sort``, ``albumartist_credit``, ``albumartists_credit``, and
``albumartists`` on VA releases instead of hardcoded "Various Artists".
:bug:`6316`
- :doc:`plugins/beatport`: Use ``va_name`` config for the album artist on VA
releases instead of hardcoded "Various Artists". :bug:`6316`

For plugin developers
~~~~~~~~~~~~~~~~~~~~~
Expand Down
Loading