Skip to content

Commit

Permalink
fix: handle qr_code for extra_texts
Browse files Browse the repository at this point in the history
Co-Authored-By: Divided by Zer0 <[email protected]>
  • Loading branch information
tazlin and db0 committed May 24, 2024
1 parent 43dd792 commit d0158db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hordelib/horde.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d0158db

Please sign in to comment.