Merge pull request #250 from jsaddiction/main

Add beets image handling support
pull/251/head
RandomNinjaAtk 1 year ago committed by GitHub
commit 7d3ec1d275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,6 +45,7 @@ RUN \
git \ git \
gcc \ gcc \
ffmpeg \ ffmpeg \
imagemagick \
opus-tools \ opus-tools \
python3-dev \ python3-dev \
libc-dev \ libc-dev \

@ -56,6 +56,7 @@ RUN \
gcc \ gcc \
opus-tools \ opus-tools \
ffmpeg \ ffmpeg \
imagemagick \
python3-dev \ python3-dev \
libc-dev \ libc-dev \
py3-pip \ py3-pip \

@ -56,6 +56,7 @@ RUN \
gcc \ gcc \
opus-tools \ opus-tools \
ffmpeg \ ffmpeg \
imagemagick \
python3-dev \ python3-dev \
libc-dev \ libc-dev \
py3-pip \ py3-pip \

@ -567,8 +567,10 @@ DownloadProcess () {
log "$page :: $wantedAlbumListSource :: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: Setting ARTIST/ALBUMARTIST tag to \"$lidarrArtistName\" :: $file" log "$page :: $wantedAlbumListSource :: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: Setting ARTIST/ALBUMARTIST tag to \"$lidarrArtistName\" :: $file"
metaflac --remove-tag=ALBUMARTIST "$file" metaflac --remove-tag=ALBUMARTIST "$file"
metaflac --remove-tag=ARTIST "$file" metaflac --remove-tag=ARTIST "$file"
metaflac --remove-tag=MUSICBRAINZ_ARTISTID "$file"
metaflac --set-tag=ALBUMARTIST="$lidarrArtistName" "$file" metaflac --set-tag=ALBUMARTIST="$lidarrArtistName" "$file"
metaflac --set-tag=ARTIST="$lidarrArtistName" "$file" metaflac --set-tag=ARTIST="$lidarrArtistName" "$file"
metaflac --set-tag=MUSICBRAINZ_ARTISTID="$lidarrArtistForeignArtistId" "$file"
done done
# Tag with beets # Tag with beets
@ -739,8 +741,10 @@ ProcessWithBeets () {
metaflac --remove-tag="ALBUM ARTIST" "$file" metaflac --remove-tag="ALBUM ARTIST" "$file"
metaflac --remove-tag=ARTISTSORT "$file" metaflac --remove-tag=ARTISTSORT "$file"
metaflac --remove-tag=ARTIST "$file" metaflac --remove-tag=ARTIST "$file"
metaflac --remove-tag=MUSICBRAINZ_ARTISTID "$file"
metaflac --set-tag=ARTIST="$lidarrArtistName" "$file" metaflac --set-tag=ARTIST="$lidarrArtistName" "$file"
metaflac --set-tag=ALBUMARTIST="$lidarrArtistName" "$file" metaflac --set-tag=ALBUMARTIST="$lidarrArtistName" "$file"
metaflac --set-tag=MUSICBRAINZ_ARTISTID="$lidarrArtistForeignArtistId" "$file"
done done
else else
log "$page :: $wantedAlbumListSource :: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: ERROR :: Unable to match using beets to a musicbrainz release..." log "$page :: $wantedAlbumListSource :: $processNumber of $wantedListAlbumTotal :: $lidarrArtistName :: $lidarrAlbumTitle :: $lidarrAlbumType :: ERROR :: Unable to match using beets to a musicbrainz release..."

@ -1,4 +1,4 @@
plugins: chroma embedart lastgenre plugins: chroma embedart lastgenre fetchart embedart
art_filename: folder art_filename: folder
threaded: no threaded: no
per_disc_numbering: yes per_disc_numbering: yes
@ -83,3 +83,25 @@ lastgenre:
separator: ', ' separator: ', '
whitelist: /config/extended/scripts/beets-genre-whitelist.txt whitelist: /config/extended/scripts/beets-genre-whitelist.txt
title_case: yes title_case: yes
fetchart:
auto: no
cautious: no
enforce_ratio: yes
minwidth: 1000
maxwidth: 3000
sources:
- filesystem
- coverart
- albumart
# - fanarttv
- bandcamp
# fanarttv_key: yourAPIkey
store_source: yes
embedart:
auto: no
compare_threshold: 50
ifempty: yes
maxwidth: 0
remove_art_file: no
Loading…
Cancel
Save