scribblescrobble

This commit is contained in:
chaos 2025-02-03 14:18:49 +00:00
parent 5a8f5e18cc
commit b8ef85a5d9
No known key found for this signature in database
20 changed files with 21 additions and 9 deletions

View file

@ -1,9 +1,6 @@
ARG BUILD_FROM
FROM $BUILD_FROM
RUN apk add \
mpc \
mpd \
rclone
RUN apk add mpd mpc rclone mpdscribble
COPY rootfs /

View file

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

View file

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View file

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -0,0 +1 @@
ympd

View file

@ -10,10 +10,7 @@ chown root:root /usr/bin/mpc
chmod 0774 /usr/bin/mpd
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"
bashio::log.info 'Start MPD'
bashio::log.info 'Starting MPD'
mpd --stdout --no-daemon

View file

@ -0,0 +1,7 @@
#!/command/with-contenv bashio
set -e
export LD_PRELOAD="/usr/local/lib/libjemalloc.so.2"
bashio::log.info 'Starting MPD Scrobbler'
mpdscribble -v --log syslog --host 127.0.0.1 --port 6600 -D --config /media/mpdscribble.conf

View file

@ -0,0 +1 @@
longrun

View file

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

View file

@ -0,0 +1 @@
oneshot