1
0
Fork 0

Rename getenv calls to environment.get.

liquidsoap-2.2
Icedream 2023-03-13 03:35:44 +01:00
parent 5177abd11f
commit 9b3cf7c5eb
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
2 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@
# Our Denon StagelinQ receiver will send the metadata to this interface. # Our Denon StagelinQ receiver will send the metadata to this interface.
# For fun, I tested this code with the port set to 1608 to emulate the OBS Tuna plugin's HTTP interface, and that works well! # For fun, I tested this code with the port set to 1608 to emulate the OBS Tuna plugin's HTTP interface, and that works well!
metadata_api_hostname = getenv(default="icedream-bitwave", "METADATA_API_HOSTNAME") metadata_api_hostname = environment.get(default="icedream-bitwave", "METADATA_API_HOSTNAME")
def http_export_meta(%argsof(json.stringify), m) = def http_export_meta(%argsof(json.stringify), m) =
j = json() j = json()

View File

@ -1,8 +1,8 @@
stream_name=getenv(default="Spontaneously live in the mix", "STREAM_NAME") stream_name=environment.get(default="Spontaneously live in the mix", "STREAM_NAME")
stream_description=getenv(default="", "STREAM_DESCRIPTION") stream_description=environment.get(default="", "STREAM_DESCRIPTION")
internal_icecast_username=getenv(default="source", "INTERNAL_ICECAST_USERNAME") internal_icecast_username=environment.get(default="source", "INTERNAL_ICECAST_USERNAME")
internal_icecast_password=getenv(default="source", "INTERNAL_ICECAST_PASSWORD") internal_icecast_password=environment.get(default="source", "INTERNAL_ICECAST_PASSWORD")
rektfm_username=getenv("REKTNETWORK_USERNAME") rektfm_username=environment.get("REKTNETWORK_USERNAME")
rektfm_password=getenv("REKTNETWORK_PASSWORD") rektfm_password=environment.get("REKTNETWORK_PASSWORD")