Skip to content

Commit

Permalink
Merge pull request #15 from sirstudly/media_missing_title_year_logging
Browse files Browse the repository at this point in the history
  • Loading branch information
funkypenguin authored Nov 23, 2024
2 parents 564037f + a460803 commit 63b77f0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions content/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "."
Expand Down

0 comments on commit 63b77f0

Please sign in to comment.