diff --git a/src/program/content/mdblist.py b/src/program/content/mdblist.py index 3d9046dc..e8785232 100644 --- a/src/program/content/mdblist.py +++ b/src/program/content/mdblist.py @@ -54,7 +54,9 @@ def run(self) -> Generator[MediaItem, None, None]: else: items = list_items_by_url(list, self.settings.api_key) for item in items: - if item and getattr(item, "imdb_id", "").startswith("tt"): + if not item or item.imdb_id is None: + continue + if item.imdb_id.startswith("tt"): items_to_yield.append(MediaItem( {"imdb_id": item.imdb_id, "requested_by": self.key} ))