Skip to content

Commit 5d6d781

Browse files
authored
Support for subsonictitle #398 (#400)
1 parent a109afb commit 5d6d781

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ ENV SUBSONIC_ENABLE ""
148148
ENV SUBSONIC_AUTOSTART ""
149149
ENV SUBSONIC_BASE_URL ""
150150
ENV SUBSONIC_PORT ""
151+
ENV SUBSONIC_TITLE ""
151152
ENV SUBSONIC_USER ""
152153
ENV SUBSONIC_PASSWORD ""
153154
ENV SUBSONIC_LEGACYAUTH ""

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ BBC_ENABLE|Enable BBC plugin. Set to `yes` to enable
216216
BBC_PROGRAMME_DAYS|Past days in BBC Sounds catalog listing. This controls how many days are listed in the station displays.
217217
RADIO_BROWSER_ENABLE|Enable the Radio Browser plugin. Set to `yes` to enable
218218
SUBSONIC_ENABLE|Enable the Subsonic plugin. Set to `yes` to enable
219+
SUBSONIC_TITLE|Title of the Subsonic plugin, defaults to `Subsonic`
219220
SUBSONIC_AUTOSTART|Autostart Subsonic plugin, defaults to `1`
220221
SUBSONIC_BASE_URL|Subsonic base url. Example: `http://my_navidrome.homelab.local`
221222
SUBSONIC_PORT|Subsonic port, defaults to `4533`

app/bin/run-upmpdcli.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,12 @@ if [ "${SUBSONIC_ENABLE^^}" == "YES" ]; then
424424
sed -i 's/\#subsonicautostart/subsonicautostart/g' $CONFIG_FILE;
425425
set_parameter $CONFIG_FILE SUBSONIC_AUTOSTART "$SUBSONIC_AUTOSTART" subsonicautostart
426426
fi
427+
if [[ -n "${SUBSONIC_TITLE}" ]]; then
428+
echo "SUBSONIC_TITLE=[$SUBSONIC_TITLE]"
429+
sed -i 's/\#subsonicuser/subsonicuser/g' $CONFIG_FILE
430+
sed -i 's/\#subsonictitle/subsonictitle/g' $CONFIG_FILE;
431+
set_parameter $CONFIG_FILE SUBSONIC_TITLE "$SUBSONIC_TITLE" subsonictitle
432+
fi
427433
echo "Setting subsonic base_url [$SUBSONIC_BASE_URL]"
428434
sed -i 's/\#subsonicbaseurl/subsonicbaseurl/g' $CONFIG_FILE
429435
sed -i 's,SUBSONIC_BASE_URL,'"$SUBSONIC_BASE_URL"',g' $CONFIG_FILE

app/conf/upmpdcli.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ upradiostitle = Upmpdcli Radio List
101101
#radio-browseruser = radio-browseruser
102102
#subsonicautostart = SUBSONIC_AUTOSTART
103103
#subsonicuser = SUBSONIC_USER
104+
#subsonictitle = SUBSONIC_TITLE
104105
#subsonicpassword = SUBSONIC_PASSWORD
105106
#subsoniclegacyauth = SUBSONIC_LEGACYAUTH
106107
#subsonicbaseurl = SUBSONIC_BASE_URL

doc/change-history.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
Change Date|Major Changes
44
---|---
5+
2024-05-01|Support for `subsonictitle` (see issue [#398](https://github.com/GioF71/upmpdcli-docker/issues/398))
56
2024-04-24|Update to Upmpdcli version 1.8.10 (see issue [#393](https://github.com/GioF71/upmpdcli-docker/issues/393))
67
2024-03-27|Fix executable shell files for user mode (see issue [#390](https://github.com/GioF71/upmpdcli-docker/issues/390)))
78
2024-03-24|Add support for upnp log file and level (see issue [#383](https://github.com/GioF71/upmpdcli-docker/issues/383)))

0 commit comments

Comments
 (0)