Add Dockerfile and root folder from upstream
This commit is contained in:
26
root/defaults/beets.sh
Normal file
26
root/defaults/beets.sh
Normal file
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# beets music tagger - post-processing script
|
||||
#
|
||||
# Author: Rich Manton (overbyrn)
|
||||
# Date: 29-04-13
|
||||
#
|
||||
# $1 - Fullpath of directory to be processed. eg./mnt/user/downloads/some.artist_some.album
|
||||
|
||||
# $7 - Status of post processing. 0 = OK, 1 = failed verification, 2 = failed unpack, 3 = 1+2
|
||||
if [ ! -z "$7" ] && [ "$7" -gt 0 ]; then
|
||||
echo "post-processing failed, bypassing script"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# process files
|
||||
echo "--------------------------"
|
||||
printf %b "$(date)\n"
|
||||
echo "Starting beets.sh for $(basename $1)"
|
||||
|
||||
BEETSDIR=/config
|
||||
export BEETSDIR
|
||||
FPCALC=/usr/bin/fpcalc
|
||||
export FPCALC
|
||||
/usr/bin/beet -v import -q "$1"
|
||||
|
63
root/defaults/config.yaml
Normal file
63
root/defaults/config.yaml
Normal file
@ -0,0 +1,63 @@
|
||||
plugins: fetchart embedart convert scrub replaygain lastgenre chroma web
|
||||
directory: /music
|
||||
library: /config/musiclibrary.blb
|
||||
art_filename: albumart
|
||||
threaded: yes
|
||||
original_date: no
|
||||
per_disc_numbering: no
|
||||
|
||||
convert:
|
||||
auto: no
|
||||
ffmpeg: /usr/bin/ffmpeg
|
||||
opts: -ab 320k -ac 2 -ar 48000
|
||||
max_bitrate: 320
|
||||
threads: 1
|
||||
|
||||
paths:
|
||||
default: $albumartist/$album%aunique{}/$track - $title
|
||||
singleton: Non-Album/$artist - $title
|
||||
comp: Compilations/$album%aunique{}/$track - $title
|
||||
albumtype_soundtrack: Soundtracks/$album/$track $title
|
||||
|
||||
import:
|
||||
write: yes
|
||||
copy: no
|
||||
move: yes
|
||||
resume: ask
|
||||
incremental: yes
|
||||
quiet_fallback: skip
|
||||
timid: no
|
||||
log: /config/beet.log
|
||||
|
||||
lastgenre:
|
||||
auto: yes
|
||||
source: album
|
||||
|
||||
embedart:
|
||||
auto: yes
|
||||
|
||||
fetchart:
|
||||
auto: yes
|
||||
|
||||
replaygain:
|
||||
auto: no
|
||||
|
||||
scrub:
|
||||
auto: yes
|
||||
|
||||
replace:
|
||||
'^\.': _
|
||||
'[\x00-\x1f]': _
|
||||
'[<>:"\?\*\|]': _
|
||||
'[\xE8-\xEB]': e
|
||||
'[\xEC-\xEF]': i
|
||||
'[\xE2-\xE6]': a
|
||||
'[\xF2-\xF6]': o
|
||||
'[\xF8]': o
|
||||
'\.$': _
|
||||
'\s+$': ''
|
||||
|
||||
web:
|
||||
host: 0.0.0.0
|
||||
port: 8337
|
||||
|
11
root/etc/cont-init.d/30-config
Normal file
11
root/etc/cont-init.d/30-config
Normal file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# copy config
|
||||
[[ ! -e /config/beets.sh ]] && \
|
||||
cp /defaults/beets.sh /config/beets.sh
|
||||
[[ ! -e /config/config.yaml ]] && \
|
||||
cp /defaults/config.yaml /config/config.yaml
|
||||
|
||||
# permissions
|
||||
chown -R abc:abc \
|
||||
/config
|
5
root/etc/services.d/beets/run
Normal file
5
root/etc/services.d/beets/run
Normal file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
umask 022
|
||||
|
||||
exec \
|
||||
s6-setuidgid abc beet web
|
Reference in New Issue
Block a user