diff --git a/Dockerfile b/Dockerfile index 1107b5d..88abbe3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -155,6 +155,8 @@ ENV SUBSONIC_WHITELIST_CODECS "" ENV SUBSONIC_DOWNLOAD_PLUGIN "" ENV SUBSONIC_PLUGIN_BRANCH "" ENV SUBSONIC_FORCE_CONNECTOR_VERSION "" +ENV SUBSONIC_TRANSCODE_CODEC "" +ENV SUBSONIC_TRANSCODE_MAX_BITRATE "" ENV TIDAL_ENABLE "" ENV TIDAL_TOKEN_TYPE "" diff --git a/README.md b/README.md index c7f9864..2c9618c 100644 --- a/README.md +++ b/README.md @@ -212,6 +212,8 @@ SUBSONIC_WHITELIST_CODECS|List of comma-separated whitelist (ideally lossless) c SUBSONIC_DOWNLOAD_PLUGIN|If set to `YES`, the updated plugin is downloaded from the upstream repo SUBSONIC_PLUGIN_BRANCH|If `SUBSONIC_DOWNLOAD_PLUGIN`, the branch indicated by this variable will be used. Must be specified if enabling `SUBSONIC_DOWNLOAD_PLUGIN`. Suggested branch name is `latest-subsonic` SUBSONIC_FORCE_CONNECTOR_VERSION|If set, the specified version of subsonic-connector will be installed over the one included in the image +SUBSONIC_TRANSCODE_CODEC|If set, the value will be used as the transcode codec +SUBSONIC_TRANSCODE_MAX_BITRATE|If set, the value will be used as the transcode max bitrate RADIO_PARADISE_ENABLE|Enable the Radio Paradise Plugin, set to `yes` to enable RADIO_PARADISE_DOWNLOAD_PLUGIN|If set to `YES`, the updated plugin is downloaded from the upstream repo RADIO_PARADISE_PLUGIN_BRANCH|If `RADIO_PARADISE_DOWNLOAD_PLUGIN` is set to `yes`, the branch indicated by this variable will be used. Must be specified if enabling `RADIO_PARADISE_DOWNLOAD_PLUGIN`. Suggested branch name is `latest-radio-paradise` diff --git a/app/bin/run-upmpdcli.sh b/app/bin/run-upmpdcli.sh index bfc63e5..1bff381 100644 --- a/app/bin/run-upmpdcli.sh +++ b/app/bin/run-upmpdcli.sh @@ -412,6 +412,14 @@ if [ "${SUBSONIC_ENABLE^^}" == "YES" ]; then sed -i 's/\#subsonicwhitelistcodecs/subsonicwhitelistcodecs/g' $CONFIG_FILE sed -i 's/SUBSONIC_WHITELIST_CODECS/'"$SUBSONIC_WHITELIST_CODECS"'/g' $CONFIG_FILE fi + if [[ -n "${SUBSONIC_TRANSCODE_CODEC}" ]]; then + sed -i 's/\#subsonictranscodecodec/subsonictranscodecodec/g' $CONFIG_FILE + sed -i 's/SUBSONIC_TRANSCODE_CODEC/'"$SUBSONIC_TRANSCODE_CODEC"'/g' $CONFIG_FILE + fi + if [[ -n "${SUBSONIC_TRANSCODE_MAX_BITRATE}" ]]; then + sed -i 's/\#subsonictranscodemaxbitrate/subsonictranscodemaxbitrate/g' $CONFIG_FILE + sed -i 's/SUBSONIC_TRANSCODE_MAX_BITRATE/'"$SUBSONIC_TRANSCODE_MAX_BITRATE"'/g' $CONFIG_FILE + fi fi echo "RADIO_PARADISE_ENABLE=[$RADIO_PARADISE_ENABLE]" diff --git a/app/conf/upmpdcli.conf b/app/conf/upmpdcli.conf index 908a6f3..c650ae5 100644 --- a/app/conf/upmpdcli.conf +++ b/app/conf/upmpdcli.conf @@ -105,6 +105,8 @@ upradiostitle = Upmpdcli Radio List #subsonicappendyeartoalbum = SUBSONIC_APPEND_YEAR_TO_ALBUM #subsonicappendcodecstoalbum = SUBSONIC_APPEND_CODECS_TO_ALBUM #subsonicwhitelistcodecs = SUBSONIC_WHITELIST_CODECS +#subsonictranscodecodec = SUBSONIC_TRANSCODE_CODEC +#subsonictranscodemaxbitrate = SUBSONIC_TRANSCODE_MAX_BITRATE #tidaluser = tidal #tidalautostart = TIDAL_AUTOSTART #tidaltokentype = TIDAL_TOKEN_TYPE