From e269e8ec60355cba30891b66a018f23942bcce1d Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 1 Apr 2020 19:24:27 -0400 Subject: [PATCH] bugfix --- root/scripts/update.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/root/scripts/update.py b/root/scripts/update.py index 152c8f1..66d8ac1 100644 --- a/root/scripts/update.py +++ b/root/scripts/update.py @@ -20,10 +20,12 @@ def main(): safeConfigParser.set("Converter", "threads", os.environ.get("CONVERTER_THREADS")) if os.environ.get("CONVERTER_HWACCELS"): safeConfigParser.set("Converter", "hwaccels", os.environ.get("CONVERTER_HWACCELS")) + else: + safeConfigParser.set("Converter", "hwaccels", " ") if os.environ.get("CONVERTER_HWACCEL_DECODERS"): safeConfigParser.set("Converter", "hwaccel-decoders", os.environ.get("CONVERTER_HWACCEL_DECODERS")) - if os.environ.get("CONVERTER_THREADS"): - safeConfigParser.set("Converter", "threads", os.environ.get("CONVERTER_THREADS")) + else: + safeConfigParser.set("Converter", "hwaccel-decoders", " ") if os.environ.get("CONVERTER_OUTPUT_FORMAT"): safeConfigParser.set("Converter", "output-format", os.environ.get("CONVERTER_OUTPUT_FORMAT")) if os.environ.get("CONVERTER_OUTPUT_EXTENSION"):