From 10736420544b5fe2d26be2f4ca5e702154a9b74f Mon Sep 17 00:00:00 2001 From: blacktwin Date: Mon, 9 Mar 2020 11:50:37 -0400 Subject: [PATCH] restructure Metadata class to use get --- utility/media_manager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utility/media_manager.py b/utility/media_manager.py index 0e51f4c..941eac5 100644 --- a/utility/media_manager.py +++ b/utility/media_manager.py @@ -82,6 +82,7 @@ class Library(object): class Metadata(object): def __init__(self, data=None): d = data or {} + self.added_at = d.get('added_at') self.media_type = d.get('media_type') self.grandparent_title = d.get('grandparent_title') self.grandparent_rating_key = d.get('grandparent_rating_key') @@ -92,6 +93,8 @@ class Metadata(object): self.container = d.get('container') self.rating_key = d.get('rating_key') self.index = d.get('media_index') + self.watched_status = d.get('watched_status') + self.libraryName = d.get("library_name") self.full_title = d.get('full_title') self.title = d.get('title') self.year = d.get('year')