diff --git a/root/scripts/update.py b/root/scripts/update.py index 5cd8f7e..152c8f1 100644 --- a/root/scripts/update.py +++ b/root/scripts/update.py @@ -16,6 +16,12 @@ def main(): # Set FFMPEG/FFProbe Paths safeConfigParser.set("Converter", "ffmpeg", "ffmpeg") safeConfigParser.set("Converter", "ffprobe", "ffprobe") + if os.environ.get("CONVERTER_THREADS"): + safeConfigParser.set("Converter", "threads", os.environ.get("CONVERTER_THREADS")) + if os.environ.get("CONVERTER_HWACCELS"): + safeConfigParser.set("Converter", "hwaccels", os.environ.get("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")) if os.environ.get("CONVERTER_OUTPUT_FORMAT"):