mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-13 16:52:58 -07:00
Update exporter fields
This commit is contained in:
parent
fec17a7344
commit
6085eec8c2
1 changed files with 62 additions and 21 deletions
|
@ -197,12 +197,14 @@ class Export(object):
|
|||
'guids': {
|
||||
'id': None
|
||||
},
|
||||
'hasPreviewThumbnails': None,
|
||||
'key': None,
|
||||
'labels': {
|
||||
'id': None,
|
||||
'tag': None
|
||||
},
|
||||
'languageOverride': None,
|
||||
'lastRatedAt': helpers.datetime_to_iso,
|
||||
'lastViewedAt': helpers.datetime_to_iso,
|
||||
'librarySectionID': None,
|
||||
'librarySectionKey': None,
|
||||
|
@ -239,6 +241,7 @@ class Export(object):
|
|||
'exists': None,
|
||||
'file': None,
|
||||
'has64bitOffsets': None,
|
||||
'hasPreviewThumbnails': None,
|
||||
'hasThumbnail': None,
|
||||
'id': None,
|
||||
'indexes': None,
|
||||
|
@ -428,6 +431,7 @@ class Export(object):
|
|||
'tag': None
|
||||
},
|
||||
'languageOverride': None,
|
||||
'lastRatedAt': helpers.datetime_to_iso,
|
||||
'lastViewedAt': helpers.datetime_to_iso,
|
||||
'leafCount': None,
|
||||
'librarySectionID': None,
|
||||
|
@ -472,6 +476,10 @@ class Export(object):
|
|||
'art': None,
|
||||
'artBlurHash': None,
|
||||
'artFile': lambda o: self.get_image(o, 'art'),
|
||||
'collections': {
|
||||
'id': None,
|
||||
'tag': None
|
||||
},
|
||||
'fields': {
|
||||
'name': None,
|
||||
'locked': None
|
||||
|
@ -482,6 +490,7 @@ class Export(object):
|
|||
},
|
||||
'index': None,
|
||||
'key': None,
|
||||
'lastRatedAt': helpers.datetime_to_iso,
|
||||
'lastViewedAt': helpers.datetime_to_iso,
|
||||
'leafCount': None,
|
||||
'librarySectionID': None,
|
||||
|
@ -491,10 +500,12 @@ class Export(object):
|
|||
'parentIndex': None,
|
||||
'parentKey': None,
|
||||
'parentRatingKey': None,
|
||||
'parentStudio': None,
|
||||
'parentTheme': None,
|
||||
'parentThumb': None,
|
||||
'parentTitle': None,
|
||||
'ratingKey': None,
|
||||
'seasonNumber': None,
|
||||
'summary': None,
|
||||
'thumb': None,
|
||||
'thumbBlurHash': None,
|
||||
|
@ -506,6 +517,7 @@ class Export(object):
|
|||
'userRating': None,
|
||||
'viewCount': None,
|
||||
'viewedLeafCount': None,
|
||||
'year': None,
|
||||
'episodes': lambda e: self.export_obj(e)
|
||||
}
|
||||
return _season_attrs
|
||||
|
@ -527,6 +539,10 @@ class Export(object):
|
|||
'thumb': None
|
||||
},
|
||||
'chapterSource': None,
|
||||
'collections': {
|
||||
'id': None,
|
||||
'tag': None
|
||||
},
|
||||
'contentRating': None,
|
||||
'directors': {
|
||||
'id': None,
|
||||
|
@ -534,6 +550,7 @@ class Export(object):
|
|||
},
|
||||
'duration': None,
|
||||
'durationHuman': lambda o: helpers.human_duration(getattr(o, 'duration', 0)),
|
||||
'episodeNumber': None,
|
||||
'fields': {
|
||||
'name': None,
|
||||
'locked': None
|
||||
|
@ -550,8 +567,10 @@ class Export(object):
|
|||
'id': None
|
||||
},
|
||||
'hasIntroMarker': None,
|
||||
'hasPreviewThumbnails': None,
|
||||
'index': None,
|
||||
'key': None,
|
||||
'lastRatedAt': helpers.datetime_to_iso,
|
||||
'lastViewedAt': helpers.datetime_to_iso,
|
||||
'librarySectionID': None,
|
||||
'librarySectionKey': None,
|
||||
|
@ -593,6 +612,7 @@ class Export(object):
|
|||
'exists': None,
|
||||
'file': None,
|
||||
'has64bitOffsets': None,
|
||||
'hasPreviewThumbnails': None,
|
||||
'hasThumbnail': None,
|
||||
'id': None,
|
||||
'indexes': None,
|
||||
|
@ -711,8 +731,11 @@ class Export(object):
|
|||
'parentRatingKey': None,
|
||||
'parentThumb': None,
|
||||
'parentTitle': None,
|
||||
'parentYear': None,
|
||||
'rating': None,
|
||||
'ratingKey': None,
|
||||
'seasonEpisode': None,
|
||||
'seasonNumber': None,
|
||||
'summary': None,
|
||||
'thumb': None,
|
||||
'thumbBlurHash': None,
|
||||
|
@ -758,6 +781,7 @@ class Export(object):
|
|||
'guid': None,
|
||||
'index': None,
|
||||
'key': None,
|
||||
'lastRatedAt': helpers.datetime_to_iso,
|
||||
'lastViewedAt': helpers.datetime_to_iso,
|
||||
'librarySectionID': None,
|
||||
'librarySectionKey': None,
|
||||
|
@ -816,6 +840,7 @@ class Export(object):
|
|||
'id': None,
|
||||
'tag': None
|
||||
},
|
||||
'lastRatedAt': helpers.datetime_to_iso,
|
||||
'lastViewedAt': helpers.datetime_to_iso,
|
||||
'leafCount': None,
|
||||
'librarySectionID': None,
|
||||
|
@ -861,6 +886,10 @@ class Export(object):
|
|||
'art': None,
|
||||
'artBlurHash': None,
|
||||
'chapterSource': None,
|
||||
'collections': {
|
||||
'id': None,
|
||||
'tag': None
|
||||
},
|
||||
'duration': None,
|
||||
'durationHuman': lambda o: helpers.human_duration(getattr(o, 'duration', 0)),
|
||||
'fields': {
|
||||
|
@ -876,6 +905,7 @@ class Export(object):
|
|||
'guid': None,
|
||||
'index': None,
|
||||
'key': None,
|
||||
'lastRatedAt': helpers.datetime_to_iso,
|
||||
'lastViewedAt': helpers.datetime_to_iso,
|
||||
'librarySectionID': None,
|
||||
'librarySectionKey': None,
|
||||
|
@ -979,6 +1009,7 @@ class Export(object):
|
|||
'thumbBlurHash': None,
|
||||
'title': None,
|
||||
'titleSort': None,
|
||||
'trackNumber': None,
|
||||
'type': None,
|
||||
'updatedAt': helpers.datetime_to_iso,
|
||||
'userRating': None,
|
||||
|
@ -1000,6 +1031,7 @@ class Export(object):
|
|||
'guid': None,
|
||||
'index': None,
|
||||
'key': None,
|
||||
'lastRatedAt': helpers.datetime_to_iso,
|
||||
'librarySectionID': None,
|
||||
'librarySectionKey': None,
|
||||
'librarySectionTitle': None,
|
||||
|
@ -1029,6 +1061,7 @@ class Export(object):
|
|||
'guid': None,
|
||||
'index': None,
|
||||
'key': None,
|
||||
'lastRatedAt': helpers.datetime_to_iso,
|
||||
'librarySectionID': None,
|
||||
'librarySectionKey': None,
|
||||
'librarySectionTitle': None,
|
||||
|
@ -1047,6 +1080,7 @@ class Export(object):
|
|||
'titleSort': None,
|
||||
'type': None,
|
||||
'updatedAt': helpers.datetime_to_iso,
|
||||
'userRating': None,
|
||||
'year': None,
|
||||
'media': {
|
||||
'aperture': None,
|
||||
|
@ -1100,6 +1134,7 @@ class Export(object):
|
|||
'id': None,
|
||||
'tag': None
|
||||
},
|
||||
'lastRatedAt': helpers.datetime_to_iso,
|
||||
'librarySectionID': None,
|
||||
'librarySectionKey': None,
|
||||
'librarySectionTitle': None,
|
||||
|
@ -1115,6 +1150,7 @@ class Export(object):
|
|||
'titleSort': None,
|
||||
'type': None,
|
||||
'updatedAt': helpers.datetime_to_iso,
|
||||
'userRating': None,
|
||||
'items': lambda e: self.export_obj(e)
|
||||
}
|
||||
return _collection_attrs
|
||||
|
@ -1123,9 +1159,11 @@ class Export(object):
|
|||
_playlist_attrs = {
|
||||
'addedAt': helpers.datetime_to_iso,
|
||||
'composite': None,
|
||||
'content': None,
|
||||
'duration': None,
|
||||
'durationHuman': lambda o: helpers.human_duration(getattr(o, 'duration', 0)),
|
||||
'guid': None,
|
||||
'icon': None,
|
||||
'key': None,
|
||||
'leafCount': None,
|
||||
'playlistType': None,
|
||||
|
@ -1178,7 +1216,7 @@ class Export(object):
|
|||
3: [
|
||||
'art', 'thumb', 'key', 'chapterSource',
|
||||
'chapters.tag', 'chapters.index', 'chapters.start', 'chapters.end', 'chapters.thumb',
|
||||
'updatedAt', 'lastViewedAt', 'viewCount'
|
||||
'updatedAt', 'lastViewedAt', 'viewCount', 'lastRatedAt', 'hasPreviewThumbnails'
|
||||
],
|
||||
9: self._get_all_metadata_attrs(_media_type)
|
||||
}
|
||||
|
@ -1193,7 +1231,8 @@ class Export(object):
|
|||
'media.parts.file', 'media.parts.duration',
|
||||
'media.parts.container', 'media.parts.indexes', 'media.parts.size', 'media.parts.sizeHuman',
|
||||
'media.parts.audioProfile', 'media.parts.videoProfile',
|
||||
'media.parts.optimizedForStreaming', 'media.parts.deepAnalysisVersion'
|
||||
'media.parts.optimizedForStreaming', 'media.parts.deepAnalysisVersion',
|
||||
'media.parts.hasPreviewThumbnails'
|
||||
],
|
||||
3: [
|
||||
'media.parts.videoStreams.codec', 'media.parts.videoStreams.bitrate',
|
||||
|
@ -1240,7 +1279,7 @@ class Export(object):
|
|||
],
|
||||
3: [
|
||||
'art', 'thumb', 'banner', 'theme', 'key',
|
||||
'updatedAt', 'lastViewedAt', 'viewCount'
|
||||
'updatedAt', 'lastViewedAt', 'viewCount', 'lastRatedAt'
|
||||
],
|
||||
9: self._get_all_metadata_attrs(_media_type)
|
||||
}
|
||||
|
@ -1251,18 +1290,19 @@ class Export(object):
|
|||
_media_type = 'season'
|
||||
_metadata_levels = {
|
||||
1: [
|
||||
'ratingKey', 'title', 'titleSort', 'addedAt',
|
||||
'ratingKey', 'title', 'titleSort', 'addedAt', 'year',
|
||||
'userRating',
|
||||
'summary', 'guid', 'type', 'index',
|
||||
'summary', 'guid', 'type', 'seasonNumber',
|
||||
'parentTitle', 'parentRatingKey', 'parentGuid',
|
||||
'episodes'
|
||||
],
|
||||
2: [
|
||||
'collections.tag',
|
||||
'fields.name', 'fields.locked', 'guids.id'
|
||||
],
|
||||
3: [
|
||||
'art', 'thumb', 'key',
|
||||
'updatedAt', 'lastViewedAt', 'viewCount',
|
||||
'updatedAt', 'lastViewedAt', 'viewCount', 'lastRatedAt',
|
||||
'parentKey', 'parentTheme', 'parentThumb'
|
||||
],
|
||||
9: self._get_all_metadata_attrs(_media_type)
|
||||
|
@ -1276,19 +1316,19 @@ class Export(object):
|
|||
1: [
|
||||
'ratingKey', 'title', 'titleSort', 'originallyAvailableAt', 'year', 'addedAt',
|
||||
'rating', 'audienceRating', 'audienceRatingImage', 'userRating', 'contentRating',
|
||||
'summary', 'guid', 'duration', 'durationHuman', 'type', 'index',
|
||||
'parentTitle', 'parentRatingKey', 'parentGuid', 'parentIndex',
|
||||
'summary', 'guid', 'duration', 'durationHuman', 'type', 'episodeNumber', 'seasonEpisode',
|
||||
'parentTitle', 'parentRatingKey', 'parentGuid', 'parentYear', 'seasonNumber',
|
||||
'grandparentTitle', 'grandparentRatingKey', 'grandparentGuid', 'hasIntroMarker'
|
||||
],
|
||||
2: [
|
||||
'directors.tag', 'writers.tag',
|
||||
'collections.tag', 'directors.tag', 'writers.tag',
|
||||
'fields.name', 'fields.locked', 'guids.id',
|
||||
'markers.type', 'markers.start', 'markers.end'
|
||||
],
|
||||
3: [
|
||||
'art', 'thumb', 'key', 'chapterSource',
|
||||
'chapters.tag', 'chapters.index', 'chapters.start', 'chapters.end', 'chapters.thumb',
|
||||
'updatedAt', 'lastViewedAt', 'viewCount',
|
||||
'updatedAt', 'lastViewedAt', 'viewCount', 'lastRatedAt', 'hasPreviewThumbnails',
|
||||
'parentThumb', 'parentKey',
|
||||
'grandparentArt', 'grandparentThumb', 'grandparentTheme', 'grandparentKey'
|
||||
],
|
||||
|
@ -1305,7 +1345,8 @@ class Export(object):
|
|||
'media.parts.file', 'media.parts.duration',
|
||||
'media.parts.container', 'media.parts.indexes', 'media.parts.size', 'media.parts.sizeHuman',
|
||||
'media.parts.audioProfile', 'media.parts.videoProfile',
|
||||
'media.parts.optimizedForStreaming', 'media.parts.deepAnalysisVersion'
|
||||
'media.parts.optimizedForStreaming', 'media.parts.deepAnalysisVersion',
|
||||
'media.parts.hasPreviewThumbnails'
|
||||
],
|
||||
3: [
|
||||
'media.parts.videoStreams.codec', 'media.parts.videoStreams.bitrate',
|
||||
|
@ -1351,7 +1392,7 @@ class Export(object):
|
|||
],
|
||||
3: [
|
||||
'art', 'thumb', 'key',
|
||||
'updatedAt', 'lastViewedAt', 'viewCount'
|
||||
'updatedAt', 'lastViewedAt', 'viewCount', 'lastRatedAt'
|
||||
],
|
||||
9: self._get_all_metadata_attrs(_media_type)
|
||||
}
|
||||
|
@ -1374,7 +1415,7 @@ class Export(object):
|
|||
],
|
||||
3: [
|
||||
'art', 'thumb', 'key',
|
||||
'updatedAt', 'lastViewedAt', 'viewCount',
|
||||
'updatedAt', 'lastViewedAt', 'viewCount', 'lastRatedAt',
|
||||
'parentKey', 'parentThumb'
|
||||
],
|
||||
9: self._get_all_metadata_attrs(_media_type)
|
||||
|
@ -1388,17 +1429,17 @@ class Export(object):
|
|||
1: [
|
||||
'ratingKey', 'title', 'titleSort', 'originalTitle', 'year', 'addedAt',
|
||||
'userRating', 'ratingCount',
|
||||
'summary', 'guid', 'duration', 'durationHuman', 'type', 'index',
|
||||
'summary', 'guid', 'duration', 'durationHuman', 'type', 'trackNumber',
|
||||
'parentTitle', 'parentRatingKey', 'parentGuid', 'parentIndex',
|
||||
'grandparentTitle', 'grandparentRatingKey', 'grandparentGuid'
|
||||
],
|
||||
2: [
|
||||
'moods.tag',
|
||||
'collections.tag', 'moods.tag',
|
||||
'fields.name', 'fields.locked'
|
||||
],
|
||||
3: [
|
||||
'art', 'thumb', 'key',
|
||||
'updatedAt', 'lastViewedAt', 'viewCount',
|
||||
'updatedAt', 'lastViewedAt', 'viewCount', 'lastRatedAt',
|
||||
'parentThumb', 'parentKey',
|
||||
'grandparentArt', 'grandparentThumb', 'grandparentKey'
|
||||
],
|
||||
|
@ -1453,7 +1494,7 @@ class Export(object):
|
|||
],
|
||||
3: [
|
||||
'art', 'thumb', 'key',
|
||||
'updatedAt'
|
||||
'updatedAt', 'lastRatedAt'
|
||||
],
|
||||
9: self._get_all_metadata_attrs(_media_type)
|
||||
}
|
||||
|
@ -1465,7 +1506,7 @@ class Export(object):
|
|||
_metadata_levels = {
|
||||
1: [
|
||||
'ratingKey', 'title', 'titleSort', 'year', 'originallyAvailableAt', 'addedAt',
|
||||
'summary', 'guid', 'type', 'index',
|
||||
'summary', 'guid', 'type', 'index', 'userRating',
|
||||
'parentTitle', 'parentRatingKey', 'parentGuid', 'parentIndex',
|
||||
'createdAtAccuracy', 'createdAtTZOffset'
|
||||
],
|
||||
|
@ -1474,7 +1515,7 @@ class Export(object):
|
|||
],
|
||||
3: [
|
||||
'thumb', 'key',
|
||||
'updatedAt',
|
||||
'updatedAt', 'lastRatedAt',
|
||||
'parentThumb', 'parentKey'
|
||||
],
|
||||
9: self._get_all_metadata_attrs(_media_type)
|
||||
|
@ -1502,7 +1543,7 @@ class Export(object):
|
|||
_metadata_levels = {
|
||||
1: [
|
||||
'ratingKey', 'title', 'titleSort', 'minYear', 'maxYear', 'addedAt',
|
||||
'contentRating',
|
||||
'contentRating', 'userRating',
|
||||
'summary', 'guid', 'type', 'subtype', 'childCount',
|
||||
'collectionMode', 'collectionSort',
|
||||
'items'
|
||||
|
@ -1513,7 +1554,7 @@ class Export(object):
|
|||
],
|
||||
3: [
|
||||
'art', 'thumb', 'key',
|
||||
'updatedAt'
|
||||
'updatedAt', 'lastRatedAt'
|
||||
],
|
||||
9: self._get_all_metadata_attrs(_media_type)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue