diff --git a/contrib/kml_export.lua b/contrib/kml_export.lua index baca991..ddef66b 100644 --- a/contrib/kml_export.lua +++ b/contrib/kml_export.lua @@ -139,8 +139,7 @@ local function create_kml_file(storage, image_table, extra_data) end -- delete the original image to not get into the kmz file - local rmCommand = "rm "..image - coroutine.yield("RUN_COMMAND", rmCommand) + os.remove(image) local pattern = "[/]?([^/]+)$" filmName = string.match(_.film.path, pattern)