Skip to content

Commit b84e6a5

Browse files
committed
drop2beets implementation
1 parent 4d60548 commit b84e6a5

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ RUN \
8888
requests \
8989
requests_oauthlib \
9090
typing-extensions \
91-
unidecode && \
91+
unidecode \
92+
drop2beets && \
9293
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
9394
echo "**** cleanup ****" && \
9495
apk del --purge \
@@ -103,6 +104,8 @@ ENV BEETSDIR="/config" \
103104
EDITOR="nano" \
104105
HOME="/config"
105106

107+
RUN mkdir /downloads #it freaked out without this :(
108+
106109
# copy local files
107110
COPY root/ /
108111

root/defaults/config.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
plugins: fetchart embedart convert scrub replaygain lastgenre chroma web
1+
plugins: fetchart embedart convert scrub replaygain lastgenre chroma web drop2beets
2+
drop2beets:
3+
dropbox_path: /downloads
24
directory: /music
35
library: /config/musiclibrary.blb
46
art_filename: albumart
@@ -21,8 +23,8 @@ paths:
2123

2224
import:
2325
write: yes
24-
copy: yes
25-
move: no
26+
copy: no
27+
move: yes
2628
resume: ask
2729
incremental: yes
2830
quiet_fallback: skip

root/etc/s6-overlay/s6-rc.d/svc-beets/run

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/with-contenv bash
22
# shellcheck shell=bash
33

4+
if [[ -v DROP_ENABLED ]]; then
5+
echo "dropbox is enabled"
6+
beet dropbox &
7+
fi
8+
49
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
510
exec \
611
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8337" \

0 commit comments

Comments
 (0)