diff --git a/VERSION b/VERSION index 2e2ace2c..8c4f6ba9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.0-develop68 +1.17.0-develop70 diff --git a/modules/config.py b/modules/config.py index 64d6792f..1b04f0dc 100644 --- a/modules/config.py +++ b/modules/config.py @@ -79,7 +79,7 @@ class ConfigFile: self.run_hour = datetime.strptime(attrs["time"], "%H:%M").hour self.requested_collections = util.get_list(attrs["collections"]) if "collections" in attrs else None self.requested_libraries = util.get_list(attrs["libraries"]) if "libraries" in attrs else None - self.requested_metadata_files = [mf[:-4] if str(mf).endswith(".yml") else mf for mf in util.get_list(attrs["metadata_files"])] if "metadata_files" in attrs else None + self.requested_metadata_files = [mf[:-4] if str(mf).endswith(".yml") else mf for mf in util.get_list(attrs["metadata_files"])] if "metadata_files" in attrs and attrs["metadata_files"] else None self.resume_from = attrs["resume"] if "resume" in attrs else None self.collection_only = attrs["collection_only"] if "collection_only" in attrs else False self.operations_only = attrs["operations_only"] if "operations_only" in attrs else False diff --git a/modules/operations.py b/modules/operations.py index 71614f9d..dae0be45 100644 --- a/modules/operations.py +++ b/modules/operations.py @@ -313,7 +313,9 @@ class Operations: new_rating = item.contentRating if new_rating in self.library.content_rating_mapper: new_rating = self.library.content_rating_mapper[new_rating] - if str(item.contentRating) != str(new_rating): + if not new_rating: + logger.info(f"{item.title[:25]:<25} | No Content Rating Found") + elif str(item.contentRating) != str(new_rating): item.editContentRating(new_rating) batch_display += f"\n{item.title[:25]:<25} | Content Rating | {new_rating}" except Failed: @@ -332,7 +334,7 @@ class Operations: new_date = anidb_item.released else: raise Failed - if new_date is None: + if not new_date: logger.info(f"{item.title[:25]:<25} | No Originally Available Date Found") elif str(item.originallyAvailableAt) != str(new_date): item.editOriginallyAvailable(new_date)