From d0158dba464b87d26628565bab7959b8330f2bdb Mon Sep 17 00:00:00 2001 From: tazlin Date: Fri, 24 May 2024 08:58:09 -0400 Subject: [PATCH] fix: handle `qr_code` for `extra_texts` Co-Authored-By: Divided by Zer0 --- hordelib/horde.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hordelib/horde.py b/hordelib/horde.py index bcc027b9..f9884f6c 100644 --- a/hordelib/horde.py +++ b/hordelib/horde.py @@ -950,7 +950,7 @@ def _final_pipeline_adjustments(self, payload, pipeline_data) -> tuple[dict, lis pipeline_params["qr_code_split.max_image_size"] = max(original_width, original_height) pipeline_params["qr_code_split.text"] = "https://haidra.net" for text in payload.get("extra_texts"): - if text["reference"] == "qr_text": + if text["reference"] in ["qr_code", "qr_text"]: pipeline_params["qr_code_split.text"] = text["text"] if text["reference"] == "protocol" and text["text"].lower() in ["https", "http"]: pipeline_params["qr_code_split.protocol"] = text["text"].capitalize()