mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 21:03:21 -07:00
Refactor movie export levels
This commit is contained in:
parent
3efee000ce
commit
13ff8f3a84
1 changed files with 59 additions and 62 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue