Compare commits

...

18 Commits

Author SHA1 Message Date
github-actions
2d7054c2d2 GitHub bot: changelog [nobuild] 2026-07-06 11:36:07 +00:00
Alexandre
8abbaf00d5 Update config.yaml 2026-07-06 13:29:47 +02:00
github-actions
76464ed663 GitHub bot: sanitize (spaces + LF endings) & chmod [nobuild] 2026-07-06 07:28:38 +00:00
Alexandre
6ab3ded3da Update config.yaml 2026-07-06 09:27:48 +02:00
Alexandre
6f6bb17f0a Merge pull request #2816 from alexbelgium/claude/spotify-to-plex-addon-3blmet
Add Spotify to Plex add-on
2026-07-06 09:27:16 +02:00
Claude
15c0c296f4 Fail safely instead of degrading silently in spotify_to_plex startup
- Exit with a clear error if the /app/config migration fails, rather than
  continuing to run against the non-persistent source directory (user
  changes would otherwise silently vanish on the next restart).
- Exit with a clear error if /app is missing instead of swallowing a
  broken upstream image layout with `|| true`.

Addresses further review feedback from PR #2816.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZTfSk3GQRU7oD85TnjsmW
2026-07-06 07:20:09 +00:00
Alexandre
f60574d6f8 Merge branch 'master' into claude/spotify-to-plex-addon-3blmet 2026-07-06 09:16:51 +02:00
Claude
00e5e20175 Fix encryption key format and config migration safety in spotify_to_plex
- Generate ENCRYPTION_KEY as 64 hex chars instead of base64: upstream reads
  it via Buffer.from(ENCRYPTION_KEY, 'hex') for aes-256-cbc, so a base64
  value silently broke Spotify token encryption for anyone leaving the
  option blank (the default path).
- Store the key without a trailing newline and chmod 600 it.
- Only delete /app/config after a successful copy into /config, so a
  failed migration (permissions, disk full) can't silently wipe the
  upstream default config.

Addresses review feedback from PR #2816.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZTfSk3GQRU7oD85TnjsmW
2026-07-06 07:15:35 +00:00
Alexandre
725f42932d Add files via upload 2026-07-06 09:14:01 +02:00
github-actions
d32117dab6 GitHub bot: changelog [nobuild] 2026-07-06 07:12:33 +00:00
Alexandre
610c21b55e Update version to 0.146.1-2 in config.yaml 2026-07-06 09:10:17 +02:00
Alexandre
d9a62fa14e Update run.sh 2026-07-06 09:09:12 +02:00
Alexandre
91096f29da Merge pull request #2815 from alexbelgium/codex/add-public-host-name-option
Add Manyfold public hostname option
2026-07-06 09:02:59 +02:00
Claude
c1965de873 Add Spotify to Plex add-on
New add-on wrapping the upstream jjdenhertog/spotify-to-plex Docker image
(requested in issue #2814). Keeps Spotify playlists synced to Plex.

- Wraps the multi-arch upstream image via BUILD_FROM (amd64 + aarch64)
- Uses the shared ha_entrypoint framework with 00-global_var.sh so add-on
  options (Spotify credentials, redirect URI, encryption key) become the
  environment variables the app expects
- 99-run.sh persists /app/config into the add-on config dir, auto-generates
  and stores a stable ENCRYPTION_KEY when left blank, then hands off to the
  upstream supervisord
- Web UI exposed directly on port 9030

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZTfSk3GQRU7oD85TnjsmW
2026-07-06 07:01:05 +00:00
Alexandre
b36ebeab59 Fix Manyfold public hostname detection 2026-07-06 08:52:51 +02:00
github-actions
3b57934ef2 GitHub bot: changelog [nobuild] 2026-07-06 05:48:31 +00:00
Alexandre
9513420051 Add Manyfold public hostname option 2026-07-06 07:44:05 +02:00
Alexandre
2255ec8259 Update config.yaml 2026-07-06 07:42:14 +02:00
15 changed files with 367 additions and 3 deletions

View File

@@ -1,3 +1,7 @@
## source-20260706-update (06-07-2026)
- Minor bugs fixed
## source-20260706 (06-07-2026)
- Minor bugs fixed
## source-20260705-3 (05-07-2026)
- Harden the `output.sqlite.path` rewrite added for the persistence fix: reject paths containing `..` traversal segments (shared `validate_safe_path` check), and create the destination's parent directory under `/config` when the relative path includes a subdirectory (e.g. `db/birdnet.db`), since SQLite does not create missing parent directories itself.

View File

@@ -127,5 +127,5 @@ slug: birdnet-go-dev
udev: true
url: https://github.com/alexbelgium/hassio-addons
usb: true
version: "source-20260705-3"
version: "source-20260706-update"
video: true

View File

@@ -1,4 +1,9 @@
## 0.146.1-2 (06-07-2026)
- Minor bugs fixed
## 0.146.1 (2026-07-06)
- Add configurable Manyfold public hostname with Home Assistant external URL and homeassistant.local fallbacks.
## 0.146.0 (2026-07-04)
- Update to latest version from manyfold3d/manyfold (changelog : https://github.com/manyfold3d/manyfold/releases)
## 0.145.1 (24-06-2026)

View File

@@ -1,7 +1,7 @@
name: "Manyfold"
slug: manyfold
description: "Manyfold 3D model manager as a Home Assistant add-on, using the upstream image with configurable library/index paths."
version: "0.146.0"
version: "0.146.1-2"
url: "https://github.com/alexbelgium/hassio-addons/tree/master/manyfold"
image: ghcr.io/alexbelgium/manyfold-{arch}
arch:
@@ -9,6 +9,8 @@ arch:
- aarch64
startup: services
init: false
hassio_api: true
homeassistant_api: true
ports:
3214/tcp: 3214
@@ -41,6 +43,7 @@ schema:
secret_key_base: str
puid: int
pgid: int
public_hostname: str?
multiuser: bool
library_path: str
thumbnails_path: str

View File

@@ -14,6 +14,7 @@ DEFAULT_DEFAULT_WORKER_CONCURRENCY="4"
DEFAULT_PERFORMANCE_WORKER_CONCURRENCY="1"
DEFAULT_MAX_FILE_UPLOAD_SIZE="1073741824"
DEFAULT_MAX_FILE_EXTRACT_SIZE="1073741824"
DEFAULT_PUBLIC_HOSTNAME="homeassistant.local"
log() {
echo "[manyfold-addon] $*"
@@ -26,7 +27,46 @@ die() {
read_opt() {
local key="$1"
jq -er --arg k "$key" '.[$k]' "$OPTIONS_JSON" 2>/dev/null || true
jq -er --arg k "$key" '.[$k] // empty' "$OPTIONS_JSON" 2>/dev/null || true
}
strip_hostname() {
local raw="$1"
raw="${raw#http://}"
raw="${raw#https://}"
raw="${raw%%/*}"
if [[ "$raw" =~ ^(\[[^]]+\])(:[0-9]+)?$ ]]; then
raw="${BASH_REMATCH[1]}"
else
raw="${raw%%:*}"
fi
printf '%s\n' "$raw"
}
detect_ha_public_hostname() {
local supervisor_url="${SUPERVISOR:-http://supervisor}"
local response external_url external_host
if [[ -z "${SUPERVISOR_TOKEN:-}" ]] || ! command -v curl >/dev/null 2>&1; then
printf '%s\n' "$DEFAULT_PUBLIC_HOSTNAME"
return
fi
response="$(curl -fsSL \
-H "Authorization: Bearer ${SUPERVISOR_TOKEN}" \
"${supervisor_url}/core/api/config" 2>/dev/null || true)"
external_url="$(jq -er '.external_url // empty' <<< "$response" 2>/dev/null || true)"
external_host="$(strip_hostname "$external_url")"
if [[ -n "$external_host" && "$external_host" != "null" ]]; then
printf '%s\n' "$external_host"
return
fi
printf '%s\n' "$DEFAULT_PUBLIC_HOSTNAME"
}
normalize_path() {
@@ -176,6 +216,7 @@ PERFORMANCE_WORKER_CONCURRENCY="$(read_opt performance_worker_concurrency)"; PER
MAX_FILE_UPLOAD_SIZE="$(read_opt max_file_upload_size)"; MAX_FILE_UPLOAD_SIZE="${MAX_FILE_UPLOAD_SIZE:-$DEFAULT_MAX_FILE_UPLOAD_SIZE}"
MAX_FILE_EXTRACT_SIZE="$(read_opt max_file_extract_size)"; MAX_FILE_EXTRACT_SIZE="${MAX_FILE_EXTRACT_SIZE:-$DEFAULT_MAX_FILE_EXTRACT_SIZE}"
SECRET_KEY_BASE="$(read_opt secret_key_base)"; SECRET_KEY_BASE="${SECRET_KEY_BASE:-}"
PUBLIC_HOSTNAME_RAW="$(read_opt public_hostname)"; PUBLIC_HOSTNAME_RAW="${PUBLIC_HOSTNAME_RAW:-}"
[[ "$PUID" =~ ^[0-9]+$ ]] || die "puid must be a non-negative integer"
[[ "$PGID" =~ ^[0-9]+$ ]] || die "pgid must be a non-negative integer"
@@ -189,6 +230,13 @@ SECRET_KEY_BASE="$(read_opt secret_key_base)"; SECRET_KEY_BASE="${SECRET_KEY_BAS
LIBRARY_PATH="$(require_mapped_path "library_path" "$LIBRARY_PATH_RAW")"
THUMBNAILS_PATH="$(require_mapped_path "thumbnails_path" "$THUMBNAILS_PATH_RAW")"
if [[ -n "$PUBLIC_HOSTNAME_RAW" ]]; then
PUBLIC_HOSTNAME="$(strip_hostname "$PUBLIC_HOSTNAME_RAW")"
else
PUBLIC_HOSTNAME="$(detect_ha_public_hostname)"
fi
[[ -n "$PUBLIC_HOSTNAME" && "$PUBLIC_HOSTNAME" != "null" ]] || PUBLIC_HOSTNAME="$DEFAULT_PUBLIC_HOSTNAME"
case "$THUMBNAILS_PATH" in
/config|/config/*) ;;
*) die "thumbnails_path must resolve under /config for persistence" ;;
@@ -223,6 +271,7 @@ export MULTIUSER
export MANYFOLD_MULTIUSER="$MULTIUSER"
export MANYFOLD_LIBRARY_PATH="$LIBRARY_PATH"
export MANYFOLD_THUMBNAILS_PATH="$THUMBNAILS_PATH"
export PUBLIC_HOSTNAME
export RAILS_LOG_LEVEL="$LOG_LEVEL"
export MANYFOLD_LOG_LEVEL="$LOG_LEVEL"
export WEB_CONCURRENCY

View File

@@ -11,6 +11,9 @@ configuration:
multiuser:
name: Multiuser mode
description: Enable or disable Manyfold multiuser login.
public_hostname:
name: Public hostname
description: Public hostname used by Manyfold for generated links. Leave blank to use Home Assistant external URL host, or homeassistant.local if unavailable.
library_path:
name: Library path
description: Folder scanned/indexed by Manyfold. Must be under /share, /media, or /config.

View File

@@ -0,0 +1,2 @@
## 1.0.104 (2026-07-06)
- Initial release: Spotify to Plex add-on based on jjdenhertog/spotify-to-plex

135
spotify_to_plex/Dockerfile Normal file
View File

@@ -0,0 +1,135 @@
#============================#
# ALEXBELGIUM'S DOCKERFILE #
#============================#
# _.------.
# _.-` ('>.-`"""-.
# '.--'` _'` _ .--.)
# -' '-.-';` `
# ' - _.' ``'--.
# '---` .-'""`
# /`
#=== Home Assistant Addon ===#
#################
# 1 Build Image #
#################
ARG BUILD_FROM
FROM ${BUILD_FROM}
##################
# 2 Modify Image #
##################
# Set S6 wait time
ENV S6_CMD_WAIT_FOR_SERVICES=1 \
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
S6_SERVICES_GRACETIME=0
USER root
##################
# 3 Install apps #
##################
# Copy local files
COPY rootfs/ /
RUN find . -type f \( -name "*.sh" -o -name "run" -o -name "finish" \) -print -exec chmod +x {} \;
# Uses /bin for compatibility purposes
# hadolint ignore=DL4005
RUN if [ ! -f /bin/sh ] && [ -f /usr/bin/sh ]; then ln -s /usr/bin/sh /bin/sh; fi && \
if [ ! -f /bin/bash ] && [ -f /usr/bin/bash ]; then ln -s /usr/bin/bash /bin/bash; fi
# Modules
ARG MODULES="00-banner.sh 00-global_var.sh 01-custom_script.sh"
# Automatic modules download
COPY ha_automodules.sh /ha_automodules.sh
RUN chmod 744 /ha_automodules.sh && /ha_automodules.sh "$MODULES" && rm /ha_automodules.sh
# Manual apps
ENV PACKAGES="jq"
# Automatic apps & bashio
COPY ha_autoapps.sh /ha_autoapps.sh
RUN chmod 744 /ha_autoapps.sh && /ha_autoapps.sh "$PACKAGES" && rm /ha_autoapps.sh
EXPOSE 9030
################
# 4 Entrypoint #
################
# Add entrypoint
ENV S6_STAGE2_HOOK=/ha_entrypoint.sh
COPY ha_entrypoint.sh /ha_entrypoint.sh
RUN chmod 777 /ha_entrypoint.sh
# Install bashio
COPY bashio-standalone.sh /usr/local/lib/bashio-standalone.sh
RUN chmod 0755 /usr/local/lib/bashio-standalone.sh
ENTRYPOINT [ "/usr/bin/env" ]
CMD [ "/ha_entrypoint.sh" ]
############
# 5 Labels #
############
ARG BUILD_ARCH
ARG BUILD_DATE
ARG BUILD_DESCRIPTION
ARG BUILD_NAME
ARG BUILD_REF
ARG BUILD_REPOSITORY
ARG BUILD_VERSION
ENV BUILD_VERSION="${BUILD_VERSION}"
LABEL \
io.hass.name="${BUILD_NAME}" \
io.hass.description="${BUILD_DESCRIPTION}" \
io.hass.arch="${BUILD_ARCH}" \
io.hass.type="addon" \
io.hass.version=${BUILD_VERSION} \
maintainer="alexbelgium (https://github.com/alexbelgium)" \
org.opencontainers.image.title="${BUILD_NAME}" \
org.opencontainers.image.description="${BUILD_DESCRIPTION}" \
org.opencontainers.image.vendor="Home Assistant Add-ons" \
org.opencontainers.image.authors="alexbelgium (https://github.com/alexbelgium)" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.url="https://github.com/alexbelgium" \
org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \
org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \
org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.revision=${BUILD_REF} \
org.opencontainers.image.version=${BUILD_VERSION}
#################
# 6 Healthcheck #
#################
# Avoid spamming logs
# hadolint ignore=SC2016
RUN \
# Handle Apache configuration
if [ -d /etc/apache2/sites-available ]; then \
for file in /etc/apache2/sites-*/*.conf; do \
sed -i '/<VirtualHost/a \ \n # Match requests with the custom User-Agent "HealthCheck" \n SetEnvIf User-Agent "HealthCheck" dontlog \n # Exclude matching requests from access logs \n CustomLog ${APACHE_LOG_DIR}/access.log combined env=!dontlog' "$file"; \
done; \
fi && \
\
# Handle Nginx configuration
if [ -f /etc/nginx/nginx.conf ]; then \
awk '/http \{/{print; print "map $http_user_agent $dontlog {\n default 0;\n \"~*HealthCheck\" 1;\n}\naccess_log /var/log/nginx/access.log combined if=$dontlog;"; next}1' /etc/nginx/nginx.conf > /etc/nginx/nginx.conf.new && \
mv /etc/nginx/nginx.conf.new /etc/nginx/nginx.conf; \
fi
ENV HEALTH_PORT="9030" \
HEALTH_URL=""
HEALTHCHECK \
--interval=5s \
--retries=5 \
--start-period=30s \
--timeout=25s \
CMD curl -A "HealthCheck: Docker/1.0" -s -f "http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" &>/dev/null || exit 1

75
spotify_to_plex/README.md Normal file
View File

@@ -0,0 +1,75 @@
# Home assistant add-on: Spotify to Plex
I maintain this and other Home Assistant add-ons in my free time: keeping up with upstream changes, HA changes, and testing on real hardware takes a lot of time (and some money). I use around 5-10 of my >110 addons so regularly I install test machines (and purchase some test services such as vpn) that I don't use myself to troubleshoot and improve the addons
If this add-on saves you time or makes your setup easier, I would be very grateful for your support!
[![Buy me a coffee][donation-badge]](https://www.buymeacoffee.com/alexbelgium)
[![Donate via PayPal][paypal-badge]](https://www.paypal.com/donate/?hosted_button_id=DZFULJZTP3UQA)
## Addon informations
![Version](https://img.shields.io/badge/dynamic/yaml?label=Version&query=%24.version&url=https%3A%2F%2Fraw.githubusercontent.com%2Falexbelgium%2Fhassio-addons%2Fmaster%2Fspotify_to_plex%2Fconfig.yaml)
![Ingress](https://img.shields.io/badge/dynamic/yaml?label=Ingress&query=%24.ingress&url=https%3A%2F%2Fraw.githubusercontent.com%2Falexbelgium%2Fhassio-addons%2Fmaster%2Fspotify_to_plex%2Fconfig.yaml)
![Arch](https://img.shields.io/badge/dynamic/yaml?color=success&label=Arch&query=%24.arch&url=https%3A%2F%2Fraw.githubusercontent.com%2Falexbelgium%2Fhassio-addons%2Fmaster%2Fspotify_to_plex%2Fconfig.yaml)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/9c6cf10bdbba45ecb202d7f579b5be0e)](https://www.codacy.com/gh/alexbelgium/hassio-addons/dashboard?utm_source=github.com&utm_medium=referral&utm_content=alexbelgium/hassio-addons&utm_campaign=Badge_Grade)
[![GitHub Super-Linter](https://img.shields.io/github/actions/workflow/status/alexbelgium/hassio-addons/weekly-supelinter.yaml?label=Lint%20code%20base)](https://github.com/alexbelgium/hassio-addons/actions/workflows/weekly-supelinter.yaml)
[![Builder](https://img.shields.io/github/actions/workflow/status/alexbelgium/hassio-addons/onpush_builder.yaml?label=Builder)](https://github.com/alexbelgium/hassio-addons/actions/workflows/onpush_builder.yaml)
[donation-badge]: https://img.shields.io/badge/Buy%20me%20a%20coffee-%23d32f2f?logo=buy-me-a-coffee&style=flat&logoColor=white
[paypal-badge]: https://img.shields.io/badge/Buy%20me%20a%20coffee%20Paypal-%23d32f2f?logo=buy-me-a-coffee&style=flat&logoColor=white
_Thanks to everyone having starred my repo! To star it click on the image below, then it will be on top right. Thanks!_
[![Stargazers repo roster for @alexbelgium/hassio-addons](https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.github/stars2.svg)](https://github.com/alexbelgium/hassio-addons/stargazers)
## About
This addon is based on the [docker image](https://hub.docker.com/r/jjdenhertog/spotify-to-plex) from [jjdenhertog/spotify-to-plex](https://github.com/jjdenhertog/spotify-to-plex).
It keeps your Spotify playlists synced to Plex automatically: syncing any Spotify playlist (including Spotify-owned ones), supporting multiple Spotify users, scheduled automatic synchronization, smart caching and optional downloading of missing tracks via Lidarr, SLSKD or Tidal.
## Configuration
Before starting the add-on you need a Spotify developer application (https://developer.spotify.com/dashboard):
1. Create an app and note its `Client ID` and `Client Secret`.
1. In the app settings, add the redirect URI `https://jjdenhertog.github.io/spotify-to-plex/callback.html` (this is the default `SPOTIFY_API_REDIRECT_URI`; change it only if you self-host the callback page).
Fill the add-on options:
| Option | Description |
|--------|-------------|
| `SPOTIFY_API_CLIENT_ID` | Client ID of your Spotify developer application |
| `SPOTIFY_API_CLIENT_SECRET` | Client secret of your Spotify developer application |
| `SPOTIFY_API_REDIRECT_URI` | OAuth redirect URI (must match the one configured in your Spotify app) |
| `ENCRYPTION_KEY` | Key used to encrypt stored secrets. **Leave empty** to have the add-on generate a random key on first start and persist it in the add-on config folder. Provide your own only if you want to reuse an existing configuration. |
Use the add-on `env_vars` option to pass any extra upstream environment variables (for example Tidal, SLSKD, Lidarr or Plex settings). See https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon-2 for details.
The configuration and cache are stored in the add-on config folder (`/addon_configs/<slug>`), so they survive restarts and updates.
Webui can be found at `<your-ip>:9030`.
## Installation
The installation of this add-on is pretty straightforward and not different in
comparison to installing any other Hass.io add-on.
1. Add my add-ons repository to your home assistant instance (in supervisor addons store at top right, or click button below if you have configured my HA)
[![Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled.](https://my.home-assistant.io/badges/supervisor_add_addon_repository.svg)](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2Falexbelgium%2Fhassio-addons)
1. Install this add-on.
1. Set the required options (Spotify Client ID and Secret).
1. Click the `Save` button to store your configuration.
1. Start the add-on.
1. Check the logs of the add-on to see if everything went well.
1. Open the webui, where you will finish the setup and connect your Spotify and Plex accounts.
## Support
For issues related to the add-on packaging, open an issue on [alexbelgium/hassio-addons](https://github.com/alexbelgium/hassio-addons/issues).
For issues related to the application itself, refer to the [upstream project](https://github.com/jjdenhertog/spotify-to-plex).
[repository]: https://github.com/alexbelgium/hassio-addons

View File

@@ -0,0 +1,6 @@
{
"build_from": {
"aarch64": "jjdenhertog/spotify-to-plex:1.0.104",
"amd64": "jjdenhertog/spotify-to-plex:1.0.104"
}
}

View File

@@ -0,0 +1,34 @@
arch:
- amd64
- aarch64
description: "Sync Spotify playlists to Plex"
environment:
STORAGE_DIR: /config
image: ghcr.io/alexbelgium/spotify_to_plex-{arch}
init: false
map:
- addon_config:rw
name: Spotify to Plex
options:
env_vars: []
SPOTIFY_API_CLIENT_ID: ""
SPOTIFY_API_CLIENT_SECRET: ""
SPOTIFY_API_REDIRECT_URI: "https://jjdenhertog.github.io/spotify-to-plex/callback.html"
ENCRYPTION_KEY: ""
panel_icon: mdi:spotify
ports:
9030/tcp: 9030
ports_description:
9030/tcp: Web interface
schema:
env_vars:
- name: match(^[A-Za-z0-9_]+$)
value: str?
SPOTIFY_API_CLIENT_ID: str?
SPOTIFY_API_CLIENT_SECRET: str?
SPOTIFY_API_REDIRECT_URI: str?
ENCRYPTION_KEY: str?
slug: spotify_to_plex
url: https://github.com/alexbelgium/hassio-addons/tree/master/spotify_to_plex
version: "1.0.104"
webui: "http://[HOST]:[PORT:9030]"

BIN
spotify_to_plex/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
spotify_to_plex/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -0,0 +1,40 @@
#!/usr/bin/env bashio
# shellcheck shell=bash
bashio::log.info "Starting Spotify to Plex"
# Persist the app's /app/config into the HA add-on config dir (/config)
CONFIG_TARGET="/config"
mkdir -p "$CONFIG_TARGET"
if [ -d /app/config ] && [ ! -L /app/config ]; then
if cp -rn /app/config/. "$CONFIG_TARGET/"; then
rm -rf /app/config
else
bashio::exit.nok "Failed to migrate /app/config to $CONFIG_TARGET; refusing to start with a non-persistent config"
fi
fi
if [ ! -e /app/config ] || [ -L /app/config ]; then
ln -sfn "$CONFIG_TARGET" /app/config
fi
# Auto-generate a persistent ENCRYPTION_KEY when the user leaves it blank.
# Upstream reads this via Buffer.from(ENCRYPTION_KEY, 'hex') for aes-256-cbc,
# so it must be exactly 64 hex characters (not base64).
if [ -z "${ENCRYPTION_KEY:-}" ]; then
KEY_FILE="$CONFIG_TARGET/.encryption_key"
if [ -f "$KEY_FILE" ]; then
ENCRYPTION_KEY="$(cat "$KEY_FILE")"
else
ENCRYPTION_KEY="$(head -c 32 /dev/urandom | od -An -tx1 | tr -d ' \n')"
printf '%s' "$ENCRYPTION_KEY" > "$KEY_FILE"
chmod 600 "$KEY_FILE"
bashio::log.info "Generated a new ENCRYPTION_KEY (stored in the add-on config dir)"
fi
export ENCRYPTION_KEY
fi
# Hand off to the upstream supervisord (web + scraper + scheduler)
cd /app || bashio::exit.nok "Cannot find /app (upstream image layout may have changed)"
exec /docker-entrypoint.sh supervisord -n -c /etc/supervisor/conf.d/supervisord.conf

View File

@@ -0,0 +1,8 @@
{
"last_update": "2026-07-06",
"repository": "alexbelgium/hassio-addons",
"slug": "spotify_to_plex",
"source": "dockerhub",
"upstream_repo": "jjdenhertog/spotify-to-plex",
"upstream_version": "1.0.104"
}