Add collection export levels

This commit is contained in:
JonnyWong16 2020-09-27 00:08:55 -07:00
parent 063b7ce7cc
commit 8f4da14611
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 106 additions and 59 deletions

View file

@ -1176,6 +1176,10 @@ def bool_true(value, return_none=False):
def get_attrs_to_dict(obj, attrs):
# Reload ~plexapi.base.PlexPartialObject
if hasattr(obj, 'isPartialObject'):
obj = obj.reload() if obj.isPartialObject() else obj
d = {}
for attr, sub in attrs.items():