Add album and track exporter fields

* album.formats and album.subformats
* album.hasSonicAnalysis and track.hasSonicAnalysis
This commit is contained in:
JonnyWong16 2021-10-15 18:14:36 -07:00
parent 91e0d4b403
commit 94ef9b30c7
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -840,11 +840,16 @@ class Export(object):
'name': None, 'name': None,
'locked': None 'locked': None
}, },
'formats': {
'id': None,
'tag': None
},
'genres': { 'genres': {
'id': None, 'id': None,
'tag': None 'tag': None
}, },
'guid': None, 'guid': None,
'hasSonicAnalysis': None,
'index': None, 'index': None,
'key': None, 'key': None,
'labels': { 'labels': {
@ -862,6 +867,7 @@ class Export(object):
'id': None, 'id': None,
'tag': None 'tag': None
}, },
'musicAnalysisVersion': None,
'originallyAvailableAt': partial(helpers.datetime_to_iso, to_date=True), 'originallyAvailableAt': partial(helpers.datetime_to_iso, to_date=True),
'parentGuid': None, 'parentGuid': None,
'parentKey': None, 'parentKey': None,
@ -875,6 +881,10 @@ class Export(object):
'id': None, 'id': None,
'tag': None 'tag': None
}, },
'subformats': {
'id': None,
'tag': None
},
'summary': None, 'summary': None,
'thumb': None, 'thumb': None,
'thumbBlurHash': None, 'thumbBlurHash': None,
@ -914,6 +924,7 @@ class Export(object):
'grandparentThumb': None, 'grandparentThumb': None,
'grandparentTitle': None, 'grandparentTitle': None,
'guid': None, 'guid': None,
'hasSonicAnalysis': None,
'index': None, 'index': None,
'key': None, 'key': None,
'lastRatedAt': helpers.datetime_to_iso, 'lastRatedAt': helpers.datetime_to_iso,
@ -1006,6 +1017,7 @@ class Export(object):
'id': None, 'id': None,
'tag': None 'tag': None
}, },
'musicAnalysisVersion': None,
'originalTitle': None, 'originalTitle': None,
'parentGuid': None, 'parentGuid': None,
'parentIndex': None, 'parentIndex': None,
@ -1419,10 +1431,12 @@ class Export(object):
'rating', 'userRating', 'studio', 'year', 'rating', 'userRating', 'studio', 'year',
'summary', 'guid', 'type', 'index', 'summary', 'guid', 'type', 'index',
'parentTitle', 'parentRatingKey', 'parentGuid', 'parentTitle', 'parentRatingKey', 'parentGuid',
'hasSonicAnalysis',
'tracks' 'tracks'
], ],
2: [ 2: [
'collections.tag', 'genres.tag', 'labels.tag', 'moods.tag', 'styles.tag', 'collections.tag', 'formats.tag', 'genres.tag', 'labels.tag',
'moods.tag', 'styles.tag', 'subformats.tag',
'fields.name', 'fields.locked' 'fields.name', 'fields.locked'
], ],
3: [ 3: [
@ -1443,7 +1457,8 @@ class Export(object):
'userRating', 'ratingCount', 'userRating', 'ratingCount',
'summary', 'guid', 'duration', 'durationHuman', 'type', 'trackNumber', 'summary', 'guid', 'duration', 'durationHuman', 'type', 'trackNumber',
'parentTitle', 'parentRatingKey', 'parentGuid', 'parentIndex', 'parentTitle', 'parentRatingKey', 'parentGuid', 'parentIndex',
'grandparentTitle', 'grandparentRatingKey', 'grandparentGuid' 'grandparentTitle', 'grandparentRatingKey', 'grandparentGuid',
'hasSonicAnalysis'
], ],
2: [ 2: [
'collections.tag', 'moods.tag', 'collections.tag', 'moods.tag',