mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Don't return the main child attribute as a custom field
This commit is contained in:
parent
0f2ac5104e
commit
b3eeaeeda5
1 changed files with 6 additions and 0 deletions
|
@ -1439,10 +1439,16 @@ class Export(object):
|
|||
media_attrs = self.return_attrs(media_type, flatten=True)
|
||||
metadata_levels, media_info_levels = self.return_levels(media_type, reverse_map=True)
|
||||
|
||||
child_media_types = [self.PLURAL_MEDIA_TYPES[m] for m in self.CHILD_MEDIA_TYPES[media_type]]
|
||||
|
||||
metadata_levels_map = {}
|
||||
media_info_levels_map = {}
|
||||
|
||||
for attr in media_attrs:
|
||||
# Skip the main child attribute
|
||||
if attr in child_media_types:
|
||||
continue
|
||||
|
||||
metadata_level = metadata_levels.get(
|
||||
attr, max(self.METADATA_LEVELS) if not self.is_media_info_attr(attr) else None)
|
||||
media_info_level = media_info_levels.get(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue