mirror of
https://github.com/beetbox/beets.git
synced 2026-01-27 10:33:33 +01:00
Store the release group's title.
beets does not currently store the "canonical" release group title, only each release's title and disambiguation. Oddly, beets does store the release group disambiguation. Without this there is no way to determine a release group's title without separately querying a data source.
This commit is contained in:
parent
c948c0f62e
commit
7ec93d6049
4 changed files with 9 additions and 0 deletions
|
|
@ -84,6 +84,7 @@ class AlbumInfo(AttrDict):
|
|||
mediums: Optional[int] = None,
|
||||
artist_sort: Optional[str] = None,
|
||||
releasegroup_id: Optional[str] = None,
|
||||
release_group_title: Optional[str] = None,
|
||||
catalognum: Optional[str] = None,
|
||||
script: Optional[str] = None,
|
||||
language: Optional[str] = None,
|
||||
|
|
@ -120,6 +121,7 @@ class AlbumInfo(AttrDict):
|
|||
self.mediums = mediums
|
||||
self.artist_sort = artist_sort
|
||||
self.releasegroup_id = releasegroup_id
|
||||
self.release_group_title = release_group_title
|
||||
self.catalognum = catalognum
|
||||
self.script = script
|
||||
self.language = language
|
||||
|
|
|
|||
|
|
@ -445,6 +445,9 @@ def album_info(release: Dict) -> beets.autotag.hooks.AlbumInfo:
|
|||
info.releasegroup_id = release['release-group']['id']
|
||||
info.albumstatus = release.get('status')
|
||||
|
||||
if release['release-group'].get('title'):
|
||||
info.release_group_title = release['release-group'].get('title')
|
||||
|
||||
# Get the disambiguation strings at the release and release group level.
|
||||
if release['release-group'].get('disambiguation'):
|
||||
info.releasegroupdisambig = \
|
||||
|
|
|
|||
|
|
@ -526,6 +526,7 @@ class Item(LibModel):
|
|||
'acoustid_fingerprint': types.STRING,
|
||||
'acoustid_id': types.STRING,
|
||||
'mb_releasegroupid': types.STRING,
|
||||
'release_group_title': types.STRING,
|
||||
'asin': types.STRING,
|
||||
'isrc': types.STRING,
|
||||
'catalognum': types.STRING,
|
||||
|
|
@ -1086,6 +1087,7 @@ class Album(LibModel):
|
|||
'albumtypes': types.SEMICOLON_SPACE_DSV,
|
||||
'label': types.STRING,
|
||||
'mb_releasegroupid': types.STRING,
|
||||
'release_group_title': types.STRING,
|
||||
'asin': types.STRING,
|
||||
'catalognum': types.STRING,
|
||||
'script': types.STRING,
|
||||
|
|
|
|||
|
|
@ -88,6 +88,8 @@ New features:
|
|||
* :doc:`/plugins/convert`: Add support for generating m3u8 playlists together
|
||||
with converted media files.
|
||||
:bug:`4373`
|
||||
* Fetch the ``release_group_title`` field from MusicBrainz.
|
||||
:bug: `4809`
|
||||
|
||||
Bug fixes:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue