Minor updates to running importer

This commit is contained in:
IamTheFij 2020-05-22 15:20:11 -07:00
parent bc52af79de
commit 431183135a
4 changed files with 18 additions and 8 deletions

View File

@ -7,6 +7,7 @@ RUN mkdir /beets
VOLUME /beets
ENV BEETSDIR=/beets
COPY ./config.yaml ./
RUN apt-get update && apt-get install -y --no-install-recommends vim
ENV EDITOR=vim
ENTRYPOINT ["/usr/local/bin/beet"]

View File

@ -1,8 +1,11 @@
DOCKER_TAG := beets-dev-${USER}
SOURCE_DIR := ~/Music/Incoming
TARGET_DIR := ~/Music/Library
DOCKER_TAG ?= beets-dev
SOURCE_DIR ?= ~/Music/Incoming
TARGET_DIR ?= ~/Music/Library
BEET_CMD := BEETSDIR=. ./beets_env/bin/beet -d $(TARGET_DIR)
test:
echo $(SOURCE_DIR)
default: beets_env
# Creates virtualenv with beets
@ -41,7 +44,7 @@ docker-import: docker-build
-v $(TARGET_DIR):/library \
$(DOCKER_TAG) \
-d /library \
import -i -c /import
import -i /import
docker-duplicates: docker-build
docker run --rm -it \

View File

@ -1,9 +1,9 @@
# Currently specified on the commandline
# directory: ~/Music/Music
# musicbrainz:
# host: localhost:5000
# ratelimit: 100
#musicbrainz:
# host: musicbrainz:5000
# ratelimit: 100
import:
move: yes
@ -32,6 +32,7 @@ plugins:
- web
- duplicates
- play
- edit
fetchart:
cautious: yes

5
import.sh Executable file
View File

@ -0,0 +1,5 @@
#! /bin/bash
export SOURCE_DIR=/share/Multimedia/Music_Import
export TARGET_DIR=/share/Multimedia/Music_Clean
make docker-import