From 9cee9e21adb2dd42040573feea1021629b283bea Mon Sep 17 00:00:00 2001 From: zenyd Date: Mon, 2 Oct 2017 21:42:11 +0200 Subject: [PATCH] Set download directory on every script invokation This is necessary when no download directory is set, which is the default. Fixes issue introduced in commit 45783639. --- subselect.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subselect.lua b/subselect.lua index c7ead0b..e910102 100644 --- a/subselect.lua +++ b/subselect.lua @@ -85,9 +85,9 @@ end python, python_error = get_python_binary() read_options(options) -set_down_dir(options) function search_subs() + set_down_dir(options) video = mp.get_property_native("media-title", "") if python ~= nil then ret = utils.subprocess({ args = { python, options.subselect_path, video, options.down_dir, options.sub_language }})