diff --git a/Dockerfile b/Dockerfile index 29c8d24..f616265 100644 --- a/Dockerfile +++ b/Dockerfile @@ -148,6 +148,7 @@ ENV SUBSONIC_ENABLE "" ENV SUBSONIC_AUTOSTART "" ENV SUBSONIC_BASE_URL "" ENV SUBSONIC_PORT "" +ENV SUBSONIC_TITLE "" ENV SUBSONIC_USER "" ENV SUBSONIC_PASSWORD "" ENV SUBSONIC_LEGACYAUTH "" diff --git a/README.md b/README.md index a5c1c82..146fcc1 100644 --- a/README.md +++ b/README.md @@ -216,6 +216,7 @@ BBC_ENABLE|Enable BBC plugin. Set to `yes` to enable BBC_PROGRAMME_DAYS|Past days in BBC Sounds catalog listing. This controls how many days are listed in the station displays. RADIO_BROWSER_ENABLE|Enable the Radio Browser plugin. Set to `yes` to enable SUBSONIC_ENABLE|Enable the Subsonic plugin. Set to `yes` to enable +SUBSONIC_TITLE|Title of the Subsonic plugin, defaults to `Subsonic` SUBSONIC_AUTOSTART|Autostart Subsonic plugin, defaults to `1` SUBSONIC_BASE_URL|Subsonic base url. Example: `http://my_navidrome.homelab.local` SUBSONIC_PORT|Subsonic port, defaults to `4533` diff --git a/app/bin/run-upmpdcli.sh b/app/bin/run-upmpdcli.sh index 2444201..212b3ab 100644 --- a/app/bin/run-upmpdcli.sh +++ b/app/bin/run-upmpdcli.sh @@ -424,6 +424,12 @@ if [ "${SUBSONIC_ENABLE^^}" == "YES" ]; then sed -i 's/\#subsonicautostart/subsonicautostart/g' $CONFIG_FILE; set_parameter $CONFIG_FILE SUBSONIC_AUTOSTART "$SUBSONIC_AUTOSTART" subsonicautostart fi + if [[ -n "${SUBSONIC_TITLE}" ]]; then + echo "SUBSONIC_TITLE=[$SUBSONIC_TITLE]" + sed -i 's/\#subsonicuser/subsonicuser/g' $CONFIG_FILE + sed -i 's/\#subsonictitle/subsonictitle/g' $CONFIG_FILE; + set_parameter $CONFIG_FILE SUBSONIC_TITLE "$SUBSONIC_TITLE" subsonictitle + fi echo "Setting subsonic base_url [$SUBSONIC_BASE_URL]" sed -i 's/\#subsonicbaseurl/subsonicbaseurl/g' $CONFIG_FILE sed -i 's,SUBSONIC_BASE_URL,'"$SUBSONIC_BASE_URL"',g' $CONFIG_FILE diff --git a/app/conf/upmpdcli.conf b/app/conf/upmpdcli.conf index 5d12ea4..5e3b69a 100644 --- a/app/conf/upmpdcli.conf +++ b/app/conf/upmpdcli.conf @@ -101,6 +101,7 @@ upradiostitle = Upmpdcli Radio List #radio-browseruser = radio-browseruser #subsonicautostart = SUBSONIC_AUTOSTART #subsonicuser = SUBSONIC_USER +#subsonictitle = SUBSONIC_TITLE #subsonicpassword = SUBSONIC_PASSWORD #subsoniclegacyauth = SUBSONIC_LEGACYAUTH #subsonicbaseurl = SUBSONIC_BASE_URL diff --git a/doc/change-history.md b/doc/change-history.md index 908a2cb..79dafd1 100644 --- a/doc/change-history.md +++ b/doc/change-history.md @@ -2,6 +2,7 @@ Change Date|Major Changes ---|--- +2024-05-01|Support for `subsonictitle` (see issue [#398](https://github.com/GioF71/upmpdcli-docker/issues/398)) 2024-04-24|Update to Upmpdcli version 1.8.10 (see issue [#393](https://github.com/GioF71/upmpdcli-docker/issues/393)) 2024-03-27|Fix executable shell files for user mode (see issue [#390](https://github.com/GioF71/upmpdcli-docker/issues/390))) 2024-03-24|Add support for upnp log file and level (see issue [#383](https://github.com/GioF71/upmpdcli-docker/issues/383)))