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 VOLUME /beets
ENV BEETSDIR=/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"] ENTRYPOINT ["/usr/local/bin/beet"]

View File

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

View File

@ -2,7 +2,7 @@
# directory: ~/Music/Music # directory: ~/Music/Music
#musicbrainz: #musicbrainz:
# host: localhost:5000 # host: musicbrainz:5000
# ratelimit: 100 # ratelimit: 100
import: import:
@ -32,6 +32,7 @@ plugins:
- web - web
- duplicates - duplicates
- play - play
- edit
fetchart: fetchart:
cautious: yes 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