Refactor movie export levels

This commit is contained in:
JonnyWong16 2020-09-27 14:39:22 -07:00
commit 13ff8f3a84
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -986,9 +986,7 @@ class Export(object):
def movie_levels():
_media_type = 'movie'
_movie_levels = [
{
_metadata_levels = {
1: [
'ratingKey', 'title', 'titleSort', 'originalTitle', 'originallyAvailableAt', 'year', 'addedAt',
'rating', 'ratingImage', 'audienceRating', 'audienceRatingImage', 'userRating', 'contentRating',
@ -1005,8 +1003,8 @@ class Export(object):
'updatedAt', 'lastViewedAt', 'viewCount'
],
9: self._get_all_metadata_attr(_media_type)
},
{
}
_media_info_levels = {
1: [
'locations', 'media.aspectRatio', 'media.audioChannels', 'media.audioCodec', 'media.audioProfile',
'media.bitrate', 'media.container', 'media.duration', 'media.height', 'media.width',
@ -1046,8 +1044,7 @@ class Export(object):
'locations', 'media'
]
}
]
return _movie_levels
return _metadata_levels, _media_info_levels
def show_levels():
_media_type = 'show'