From 0bc6fdf958ac1be935a3c50b6c632fa13eb0281a Mon Sep 17 00:00:00 2001 From: gq1869 Date: Sun, 12 Jan 2025 20:54:04 -0800 Subject: [PATCH] Uses get() to avoid KeyError --- plugins/TPDBMarkers/tpdbMarkers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/TPDBMarkers/tpdbMarkers.py b/plugins/TPDBMarkers/tpdbMarkers.py index 1cb63bc5..d88ba9e1 100644 --- a/plugins/TPDBMarkers/tpdbMarkers.py +++ b/plugins/TPDBMarkers/tpdbMarkers.py @@ -38,7 +38,7 @@ def processScene(scene): log.info("Saving markers") mp.import_scene_markers(stash, markers, scene["id"], 15) # skip if there is already a movie linked - if settings["createMovieFromScene"] and len(scene["movies"]) ==0: + if settings["createMovieFromScene"] and len(scene.get("movies", [])) == 0: movies=[] for m in data["movies"]: movie=processMovie(m)