mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-24 02:09:56 +00:00
PICARD-2124: Add and fill _releaseannotation variable
This commit is contained in:
@@ -479,7 +479,7 @@ class Album(DataObject, Item):
|
||||
config = get_config()
|
||||
require_authentication = False
|
||||
inc = ['release-groups', 'media', 'discids', 'recordings', 'artist-credits',
|
||||
'artists', 'aliases', 'labels', 'isrcs', 'collections']
|
||||
'artists', 'aliases', 'labels', 'isrcs', 'collections', 'annotation']
|
||||
if self.tagger.webservice.oauth_manager.is_authorized():
|
||||
require_authentication = True
|
||||
inc += ['user-collections']
|
||||
|
||||
@@ -79,6 +79,7 @@ _RECORDING_TO_METADATA = {
|
||||
}
|
||||
|
||||
_RELEASE_TO_METADATA = {
|
||||
'annotation': '~releaseannotation',
|
||||
'asin': 'asin',
|
||||
'barcode': 'barcode',
|
||||
'country': 'releasecountry',
|
||||
|
||||
@@ -460,7 +460,8 @@
|
||||
],
|
||||
"id": "b84ee12a-09ef-421b-82de-0441a926375b",
|
||||
"packaging-id": "e724a489-a7e8-30a1-a17c-30dfd6831202",
|
||||
"disambiguation": "",
|
||||
"disambiguation": "stereo",
|
||||
"annotation": "Original Vinyl release",
|
||||
"label-info": [
|
||||
{
|
||||
"catalog-number": "SHVL 804",
|
||||
|
||||
@@ -92,6 +92,8 @@ class ReleaseTest(MBJSONTest):
|
||||
self.assertEqual(m['script'], 'Latn')
|
||||
self.assertEqual(m['~albumartists'], 'Pink Floyd')
|
||||
self.assertEqual(m['~albumartists_sort'], 'Pink Floyd')
|
||||
self.assertEqual(m['~releasecomment'], 'stereo')
|
||||
self.assertEqual(m['~releaseannotation'], 'Original Vinyl release')
|
||||
self.assertEqual(m['~releaselanguage'], 'eng')
|
||||
self.assertEqual(m.getall('~releasecountries'), ['GB', 'NZ'])
|
||||
self.assertEqual(a.genres, {
|
||||
|
||||
Reference in New Issue
Block a user