Skip to content

Commit

Permalink
fix: check item instance before add from content services
Browse files Browse the repository at this point in the history
  • Loading branch information
dreulavelle committed Oct 19, 2024
1 parent 6624b48 commit 7aa48ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/program/db/db_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 7aa48ed

Please sign in to comment.