Refactor exporter

This commit is contained in:
JonnyWong16 2020-09-27 11:27:16 -07:00
parent 8f4da14611
commit e9f37d578e
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 406 additions and 482 deletions

View file

@ -1176,10 +1176,6 @@ 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():