Skip to content

Commit

Permalink
Add support for transcoding settings
Browse files Browse the repository at this point in the history
  • Loading branch information
GioF71 committed Nov 14, 2023
1 parent 1a7dce1 commit 632bb4c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
8 changes: 8 additions & 0 deletions app/bin/run-upmpdcli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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]"
Expand Down
2 changes: 2 additions & 0 deletions app/conf/upmpdcli.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 632bb4c

Please sign in to comment.