From 7aa48ede46dc553beb424d2c9d765a293e6cc7d2 Mon Sep 17 00:00:00 2001 From: Spoked Date: Sat, 19 Oct 2024 02:07:06 -0400 Subject: [PATCH] fix: check item instance before add from content services --- src/program/db/db_functions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/program/db/db_functions.py b/src/program/db/db_functions.py index 8abb11a9..6aaf3597 100644 --- a/src/program/db/db_functions.py +++ b/src/program/db/db_functions.py @@ -403,7 +403,8 @@ def run_thread_with_db_item(fn, service, program, input_id: int = None): i = [i] if isinstance(i, list): for item in i: - program.em.add_item(item, service) + if isinstance(item, MediaItem): + program.em.add_item(item, service) return def hard_reset_database():