From 10cf4ac891fc5300c5378358dc603a8c9b8859f0 Mon Sep 17 00:00:00 2001 From: M1dgard Date: Sun, 4 Nov 2018 17:19:07 +0100 Subject: [PATCH] [beets] Improve paths MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apparently my “the” plugin wasn’t even triggered! Now it is. --- beets.config.yaml | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/beets.config.yaml b/beets.config.yaml index acc8a8a..0836d77 100644 --- a/beets.config.yaml +++ b/beets.config.yaml @@ -21,18 +21,19 @@ musicbrainz: original_date: yes replace: - '^!!!$': 'Chk_Chk_Chk' + '^!!!$': 'Chk_Chk_Chk' '[#"()\[\]<>:\*\|{}\\!\?]': _ - "'": _ - '[\\/]': _ - '[\.,]': _ - '[\x00-\x1f]': _ - '&': '_and_' - '\+': '_plus_' - '\s+': _ - '[-_]+': _ - '^[-_](?!$)': '' - '(? 1 paths: - default: $albumartist/$album%aunique{}/%if{$multidisc,${disc}_}_${track}_-_${title} - singleton: $artist/etc/$title - comp: various_artists/$album%aunique{}/%if{$multidisc,${disc}_}_${track}_-_${title} + default: %the{$albumartist}/%the{$album}%aunique{}/%if{$multidisc,${disc}_}_${track}_-_$title + singleton: %the{$artist}/etc/$title + comp: various_artists/%the{$album}%aunique{}/%if{$multidisc,${disc}_}_${track}_-_$title va_name: various artists languages: ["nl", "en"] bell: yes -plugins: edit inline the types fetchart lyrics mpdupdate mbsync mbsubmit badfiles absubmit acousticbrainz replaygain permissions fromfilename lastgenre play fuzzy info +plugins: edit inline the types fetchart lyrics mpdupdate mbsync mbsubmit badfiles acousticbrainz replaygain permissions fromfilename lastgenre play fuzzy info edit: itemfields: track disc title artist album mb_trackid @@ -70,7 +71,8 @@ lastgenre: the: strip: yes - patterns: ^de ^een + # this string is split on spaces so we use the escape sequence + patterns: '^(de|het|een|une?|les?|la|der|die|das)\x20' types: rating: float