Closed juanamm closed 11 months ago
Hi @juanamm, I'm unable to find any legacy set instructions in your code snippet. Even after I launched the script, there were no deprecation warnings.
I've revisited this issue once more and tried to replicate the behavior. To do that I've created the ubuntu 22.04 virtual machine using the cloudimg disk image with the following config
After that, I use ssh
to access the VM.
sudo apt-get update;
sudo apt-get dist-upgrade -y;
sudo apt-get install --no-install-recommends -y curl ca-certificates patch unzip bubblewrap git bzip2 gcc make libc6-dev g++ ffmpeg;
sudo curl -sS -L -o /usr/local/bin/opam https://github.com/ocaml/opam/releases/download/2.1.5/opam-2.1.5-x86_64-linux;
sudo chmod +x /usr/local/bin/opam;
opam init --bare -n;
opam switch create 4.14.1;
eval $(opam env --switch=4.14.1);
opam install --confirm-level=unsafe-yes liquidsoap=2.1.4 taglib mad lame vorbis cry ssl samplerate;
mkdir music_security music;
ffmpeg -f lavfi -i "sine=frequency=3000:duration=10" -c:a libmp3lame -b:a 128k music_security/security.mp3;
ffmpeg -f lavfi -i "sine=frequency=3000:duration=10" -c:a libmp3lame -b:a 128k -id3v2_version 4 -metadata title=1 -y music/1.mp3;
ffmpeg -f lavfi -i "sine=frequency=3000:duration=10" -c:a libmp3lame -b:a 128k -id3v2_version 4 -metadata title=2 -y music/2.mp3;
opam list
music/music1.pls
main.liq
I configured the environment variables
export ADMIN_ICECAST=admin
export PASSWORD_ADMIN=hackme
export PASSWORD_DJ=hackme
export SOURCE_PASSW=hackme
export HOST_HTTPS=192.168.1.1
export PORT_HTTPS=8000
export PORT_LIVE=8000
export HOST_HTTPS_NO_PROT=192.168.1.1
As you can see in the log, there were no deprecation warnings. I could not find any invocations of legacy set
options.
I'll close this issue because there will be no more releases for version 2.1.x. As a solution, I recommend upgrading to 2.2.x. If you need further assistance in removing these messages, please feel free to reopen this issue.
Describe the bug Audio works fine and metadata is fetched fine too. But despite having changed all the 'set' to 'setting' I still get the warning:
2023/08/24 04:41:44 [lang:2] WARNING: "set" is deprecated and will be removed in future version. Please use settings.path.to.key.set(value)
To Reproduce
Expected behavior I was hoping this warning would no longer appear after I made the suggested changes to all
set
configurations.Version details
Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy
opam version: 2.1.2 Icecast2 version: 2.4.4 liquidsoap version: Liquidsoap 2.1.4
Install method opam install taglib mad lame vorbis cry ssl samplerate liquidsoap I have installed it from my Ubuntu 22.04 distro