diff --git a/backend/program/content/mdblist.py b/backend/program/content/mdblist.py index e58fd67a..d6896429 100644 --- a/backend/program/content/mdblist.py +++ b/backend/program/content/mdblist.py @@ -55,7 +55,7 @@ def run(self): items += self._get_items_from_list( list_id, self.settings.api_key ) - new_items = [item for item in items if item not in self.media_items] + new_items = [item for item in items if item not in self.media_items] or [] container = self.updater.create_items(new_items) for item in container: item.set("requested_by", "Mdblist") diff --git a/backend/program/content/overseerr.py b/backend/program/content/overseerr.py index cc959352..a33c00e9 100644 --- a/backend/program/content/overseerr.py +++ b/backend/program/content/overseerr.py @@ -51,7 +51,7 @@ def run(self): """Fetch media from overseerr and add them to media_items attribute if they are not already there""" items = self._get_items_from_overseerr(10000) - new_items = [item for item in items if item not in self.media_items] + new_items = [item for item in items if item not in self.media_items] or [] container = self.updater.create_items(new_items) for item in container: item.set("requested_by", "Overseerr") diff --git a/backend/program/content/plex_watchlist.py b/backend/program/content/plex_watchlist.py index e07c5793..9abcbf67 100644 --- a/backend/program/content/plex_watchlist.py +++ b/backend/program/content/plex_watchlist.py @@ -51,7 +51,7 @@ def run(self): """Fetch media from Plex Watchlist and add them to media_items attribute if they are not already there""" items = self._create_unique_list() - new_items = [item for item in items if item not in self.media_items] + new_items = [item for item in items if item not in self.media_items] or [] container = self.updater.create_items(new_items) for item in container: item.set("requested_by", "Plex Watchlist")