diff --git a/app/internal/liquidsoap_config_utils.py b/app/internal/liquidsoap_config_utils.py index 7771a25..fc6c878 100644 --- a/app/internal/liquidsoap_config_utils.py +++ b/app/internal/liquidsoap_config_utils.py @@ -13,9 +13,9 @@ def generate_liquid_script(config: IcecastConfig): Keys should match the variable names in the template (e.g., 'icecast_host'). """ try: - content = liquidsoap_config_template.model_dump() + content = liquidsoap_config_template # Replace variables - for key, value in config.items(): + for key, value in config.model_dump().items(): placeholder = f"${{{key}}}" # Ensure the value is converted to string for replacement content = content.replace(placeholder, str(value))