Add credits markers and audio/subtitle settings to exporter fields

This commit is contained in:
JonnyWong16 2023-03-09 18:15:36 -08:00
parent eb7495e930
commit 93d1f10ad3
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -186,6 +186,7 @@ class Export(object):
'duration': None, 'duration': None,
'durationHuman': lambda o: helpers.human_duration(getattr(o, 'duration', 0)), 'durationHuman': lambda o: helpers.human_duration(getattr(o, 'duration', 0)),
'editionTitle': None, 'editionTitle': None,
'enableCreditsMarkerGeneration': None,
'fields': { 'fields': {
'name': None, 'name': None,
'locked': None 'locked': None
@ -198,6 +199,7 @@ class Export(object):
'guids': { 'guids': {
'id': None 'id': None
}, },
'hasCreditsMarker': None,
'hasPreviewThumbnails': None, 'hasPreviewThumbnails': None,
'key': None, 'key': None,
'labels': { 'labels': {
@ -211,6 +213,14 @@ class Export(object):
'librarySectionKey': None, 'librarySectionKey': None,
'librarySectionTitle': None, 'librarySectionTitle': None,
'locations': None, 'locations': None,
'markers': {
'end': None,
'final': None,
'first': None,
'id': None,
'start': None,
'type': None
},
'media': { 'media': {
'aspectRatio': None, 'aspectRatio': None,
'audioChannels': None, 'audioChannels': None,
@ -403,6 +413,7 @@ class Export(object):
'artFile': lambda o: self.get_image(o, 'art'), 'artFile': lambda o: self.get_image(o, 'art'),
'audienceRating': None, 'audienceRating': None,
'audienceRatingImage': None, 'audienceRatingImage': None,
'audioLanguage': None,
'autoDeletionItemPolicyUnwatchedLibrary': None, 'autoDeletionItemPolicyUnwatchedLibrary': None,
'autoDeletionItemPolicyWatchedLibrary': None, 'autoDeletionItemPolicyWatchedLibrary': None,
'banner': None, 'banner': None,
@ -415,6 +426,7 @@ class Export(object):
'contentRating': None, 'contentRating': None,
'duration': None, 'duration': None,
'durationHuman': lambda o: helpers.human_duration(getattr(o, 'duration', 0)), 'durationHuman': lambda o: helpers.human_duration(getattr(o, 'duration', 0)),
'enableCreditsMarkerGeneration': None,
'episodeSort': None, 'episodeSort': None,
'fields': { 'fields': {
'name': None, 'name': None,
@ -454,8 +466,11 @@ class Export(object):
'role': None, 'role': None,
'thumb': None 'thumb': None
}, },
'seasonCount': None,
'showOrdering': None, 'showOrdering': None,
'studio': None, 'studio': None,
'subtitleLanguage': None,
'subtitleMode': None,
'summary': None, 'summary': None,
'tagline': None, 'tagline': None,
'theme': None, 'theme': None,
@ -481,6 +496,7 @@ class Export(object):
'art': None, 'art': None,
'artBlurHash': None, 'artBlurHash': None,
'artFile': lambda o: self.get_image(o, 'art'), 'artFile': lambda o: self.get_image(o, 'art'),
'audioLanguage': None,
'collections': { 'collections': {
'id': None, 'id': None,
'tag': None 'tag': None
@ -515,6 +531,8 @@ class Export(object):
'parentTitle': None, 'parentTitle': None,
'ratingKey': None, 'ratingKey': None,
'seasonNumber': None, 'seasonNumber': None,
'subtitleLanguage': None,
'subtitleMode': None,
'summary': None, 'summary': None,
'thumb': None, 'thumb': None,
'thumbBlurHash': None, 'thumbBlurHash': None,
@ -576,6 +594,7 @@ class Export(object):
'id': None 'id': None
}, },
'hasCommercialMarker': None, 'hasCommercialMarker': None,
'hasCreditsMarker': None,
'hasIntroMarker': None, 'hasIntroMarker': None,
'hasPreviewThumbnails': None, 'hasPreviewThumbnails': None,
'index': None, 'index': None,
@ -592,6 +611,9 @@ class Export(object):
'locations': None, 'locations': None,
'markers': { 'markers': {
'end': None, 'end': None,
'final': None,
'first': None,
'id': None,
'start': None, 'start': None,
'type': None 'type': None
}, },
@ -1270,12 +1292,14 @@ class Export(object):
1: [ 1: [
'ratingKey', 'title', 'titleSort', 'originalTitle', 'editionTitle', 'originallyAvailableAt', 'year', 'addedAt', 'ratingKey', 'title', 'titleSort', 'originalTitle', 'editionTitle', 'originallyAvailableAt', 'year', 'addedAt',
'rating', 'ratingImage', 'audienceRating', 'audienceRatingImage', 'userRating', 'contentRating', 'rating', 'ratingImage', 'audienceRating', 'audienceRatingImage', 'userRating', 'contentRating',
'studio', 'tagline', 'summary', 'guid', 'duration', 'durationHuman', 'type' 'studio', 'tagline', 'summary', 'guid', 'duration', 'durationHuman', 'type',
'hasCreditsMarker'
], ],
2: [ 2: [
'directors.tag', 'writers.tag', 'producers.tag', 'roles.tag', 'roles.role', 'directors.tag', 'writers.tag', 'producers.tag', 'roles.tag', 'roles.role',
'countries.tag', 'genres.tag', 'collections.tag', 'labels.tag', 'countries.tag', 'genres.tag', 'collections.tag', 'labels.tag',
'fields.name', 'fields.locked', 'guids.id' 'fields.name', 'fields.locked', 'guids.id',
'markers.type', 'markers.start', 'markers.end', 'markers.first', 'markers.final'
], ],
3: [ 3: [
'art', 'thumb', 'key', 'chapterSource', 'art', 'thumb', 'key', 'chapterSource',
@ -1333,7 +1357,7 @@ class Export(object):
1: [ 1: [
'ratingKey', 'title', 'titleSort', 'originallyAvailableAt', 'originalTitle', 'year', 'addedAt', 'ratingKey', 'title', 'titleSort', 'originallyAvailableAt', 'originalTitle', 'year', 'addedAt',
'rating', 'audienceRating', 'audienceRatingImage', 'userRating', 'contentRating', 'network', 'rating', 'audienceRating', 'audienceRatingImage', 'userRating', 'contentRating', 'network',
'studio', 'tagline', 'summary', 'guid', 'duration', 'durationHuman', 'type', 'childCount', 'studio', 'tagline', 'summary', 'guid', 'duration', 'durationHuman', 'type', 'childCount', 'seasonCount',
'seasons' 'seasons'
], ],
2: [ 2: [
@ -1383,12 +1407,12 @@ class Export(object):
'summary', 'guid', 'duration', 'durationHuman', 'type', 'episodeNumber', 'seasonEpisode', 'summary', 'guid', 'duration', 'durationHuman', 'type', 'episodeNumber', 'seasonEpisode',
'parentTitle', 'parentRatingKey', 'parentGuid', 'parentYear', 'seasonNumber', 'parentTitle', 'parentRatingKey', 'parentGuid', 'parentYear', 'seasonNumber',
'grandparentTitle', 'grandparentRatingKey', 'grandparentGuid', 'grandparentTitle', 'grandparentRatingKey', 'grandparentGuid',
'hasCommercialMarker', 'hasIntroMarker' 'hasCommercialMarker', 'hasCreditsMarker', 'hasIntroMarker'
], ],
2: [ 2: [
'collections.tag', 'directors.tag', 'writers.tag', 'producers.tag', 'roles.tag', 'roles.role', 'collections.tag', 'directors.tag', 'writers.tag', 'producers.tag', 'roles.tag', 'roles.role',
'fields.name', 'fields.locked', 'guids.id', 'fields.name', 'fields.locked', 'guids.id',
'markers.type', 'markers.start', 'markers.end' 'markers.type', 'markers.start', 'markers.end', 'markers.first', 'markers.final'
], ],
3: [ 3: [
'art', 'thumb', 'key', 'chapterSource', 'art', 'thumb', 'key', 'chapterSource',