Dear Liquidsoapers.
I have built and successfully been running a live stream generator from
an annotate playlist for some time on V1.01.
Today I compiled a V 1.1.1 from Git and moved my configuration file to
the new build and now have an error thats totally confused me as i have
working code.
On V1.1.1 I get the error: At line 13, char 28: the variable
rewrite_metadata used here has not been
previously defined.
My code that works on V 1.01:
# Put the log file in some directory where you have permission to write.
set("log.file.path","/home/liquids/radiotest.log")
# Print the log messages to the console when running in foreground mode
set("log.stdout", true)
# Set the logging level
set("log.level", 5)
# Specify the playlist location
radio = playlist(mode="normal",reload=600,"/anthems/anthems")
# Build a function to look for the metadata tags that are specified in
the playlist. Present them locally with short names
radio = rewrite_metadata([("broadcastServiceURI",'$(if
$(pls_broadcastServiceURI),"$(pls_broadcastServiceURI)","$(broadcastServiceURI)")'),
("api_key", '$(if
$(pls_api_key),"$(pls_api_key)","$(api_key)")'),
("audioFileURI", '$(if
$(pls_audioFileURI),"$(pls_audioFileURI)","$(audioFileURI)")')], radio)
# Now build a function to do something with the exposed tags. In this
instance we are calling a php file and passing the tags of the file
thats just started to play.
radio = on_metadata(fun (meta) -> system("curl -G
http://radio.myapi.com/platform/radio/v1.0/main/nowplaying/collector/filepost?"
^ " --data-urlencode " ^ "broadcastServiceURI=" ^
quote(meta["pls_broadcastServiceURI"])
^ " --data-urlencode " ^ "audioFileURI=" ^
quote(meta["pls_audioFileURI"])
^ " --data-urlencode " ^ "api_key=" ^
quote(meta["pls_api_key"])), radio)
# Add a security file just incase anything goes wrong with the playlist
security = single("/backup/backup.mp3")
# Set the outputstream order of play. EG. try radio first, then security
file.
radio = fallback(track_sensitive = false, [radio, security])
# Stream it out to ingest.
output.icecast(%mp3, host = "localhost", port = 8000, password =
"m4update", mount = "radiotest.mp3", radio)
Im stumped - I really wasnt expecting such an error on version update.
Any help is appreciated.
Thanks people!
Dane
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users