fix op25.liq generation pt2
Some checks failed
Lint / lint (push) Failing after 6s
release-tag / release-image (push) Failing after 17s

This commit is contained in:
Logan Cusano
2025-10-23 02:55:44 -04:00
parent 0db514f0fd
commit 0533ac44c7

View File

@@ -13,9 +13,9 @@ def generate_liquid_script(config: IcecastConfig):
Keys should match the variable names in the template (e.g., 'icecast_host'). Keys should match the variable names in the template (e.g., 'icecast_host').
""" """
try: try:
content = liquidsoap_config_template.model_dump() content = liquidsoap_config_template
# Replace variables # Replace variables
for key, value in config.items(): for key, value in config.model_dump().items():
placeholder = f"${{{key}}}" placeholder = f"${{{key}}}"
# Ensure the value is converted to string for replacement # Ensure the value is converted to string for replacement
content = content.replace(placeholder, str(value)) content = content.replace(placeholder, str(value))