From 63fc95b7ef69cb8ffb6aeadcfa20988d834ca65a Mon Sep 17 00:00:00 2001 From: Spoked Date: Sat, 21 Sep 2024 04:52:08 -0400 Subject: [PATCH] fix: mdblist list item validation fixed --- src/program/content/mdblist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/program/content/mdblist.py b/src/program/content/mdblist.py index 2f9ddf9b..7d0b30d8 100644 --- a/src/program/content/mdblist.py +++ b/src/program/content/mdblist.py @@ -54,7 +54,7 @@ def run(self) -> Generator[MediaItem, None, None]: else: items = list_items_by_url(list, self.settings.api_key) for item in items: - if hasattr(item, "imdb_id") and item.imdb_id.startswith("tt"): + if item and hasattr(item, "imdb_id") and item.imdb_id.startswith("tt"): items_to_yield.append(MediaItem( {"imdb_id": item.imdb_id, "requested_by": self.key} ))