Skip to content

Commit

Permalink
Support for subsonictitle #398 (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
GioF71 committed May 1, 2024
1 parent a109afb commit 5d6d781
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
6 changes: 6 additions & 0 deletions app/bin/run-upmpdcli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions app/conf/upmpdcli.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions doc/change-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 5d6d781

Please sign in to comment.