diff --git a/unshackle/core/utils/tags.py b/unshackle/core/utils/tags.py index 609bf87..a4b1374 100644 --- a/unshackle/core/utils/tags.py +++ b/unshackle/core/utils/tags.py @@ -64,6 +64,11 @@ def search_simkl(title: str, year: Optional[int], kind: str) -> Tuple[Optional[d data = resp.json() log.debug("Simkl API response received") + # Handle case where SIMKL returns empty list (no results) + if isinstance(data, list): + log.debug("Simkl returned list (no matches) for %r", filename) + return None, None, None + # Handle TV show responses if data.get("type") == "episode" and "show" in data: show_info = data["show"]