fix op25.liq generation pt2
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user