This commit is contained in:
chaos 2025-02-03 15:11:23 +00:00
parent a4b9c4ab12
commit 5c84752b6a
No known key found for this signature in database
6 changed files with 5 additions and 11 deletions

View file

@ -1,5 +1,5 @@
name: MPD name: MPD
version: "0.0.21" version: "0.0.22"
slug: mpd slug: mpd
description: MPD Addon description: MPD Addon
url: "https://forgejo.owo.monster/chaos/hass-mpd/src/branch/main/mpd" url: "https://forgejo.owo.monster/chaos/hass-mpd/src/branch/main/mpd"

View file

@ -10,7 +10,10 @@ chown root:root /usr/bin/mpc
chmod 0774 /usr/bin/mpd chmod 0774 /usr/bin/mpd
chmod 0774 /usr/bin/mpc chmod 0774 /usr/bin/mpc
bashio::log.info 'Sync Music'
rclone --config /media/rclone.conf -P --stats-one-line -v --transfers=1 --checkers=1 --check-first sync Music: /media/mpd/music
export LD_PRELOAD="/usr/local/lib/libjemalloc.so.2" export LD_PRELOAD="/usr/local/lib/libjemalloc.so.2"
bashio::log.info 'Starting MPD' bashio::log.info 'Start MPD'
mpd --stdout --no-daemon mpd --stdout --no-daemon

View file

@ -1,8 +0,0 @@
#!/command/with-contenv bashio
set -e
mkdir -p /media/mpd/media \
/media/mpd/playlists
bashio::log.info 'Syncing Music'
rclone --config /media/rclone.conf -v --transfers=1 --checkers=1 --check-first sync Music: /media/mpd/music

View file

@ -1 +0,0 @@
longrun