From a460803c5d1385a971824b136d184c80eecb63b8 Mon Sep 17 00:00:00 2001 From: sirstudly Date: Sat, 23 Nov 2024 10:32:26 +0000 Subject: [PATCH] more detailed logging when media missing title/year --- content/classes.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/content/classes.py b/content/classes.py index 54e21426..3f377616 100644 --- a/content/classes.py +++ b/content/classes.py @@ -1166,10 +1166,13 @@ def download(self, retries=0, library=[], parentReleases=[]): refresh_ = False i = 0 self.Releases = [] - if self.type in ["movie", "show"] and ((not hasattr(self, "title") or self.title == "" or self.title == None) or (not hasattr(self, "year") or self.year == None or self.year == "")): - ui_print( - "error: media item has no title or release year. This unknown movie/show might not be released yet.") - return + if self.type in ["movie", "show"]: + if not hasattr(self, "title") or self.title == "" or self.title is None: + ui_print("error: media item has no title. This unknown movie/show might not be released yet.") + return + elif not hasattr(self, "year") or self.year == "" or self.year is None: + ui_print(f"error: media item {self.title} has no release year. This movie/show might not be released yet.") + return scraper.services.overwrite = [] EIDS = [] imdbID = "."