From 358dd8e6d186b8709b77a82c7aa9c36d859faf6c Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Fri, 18 Jun 2021 15:30:48 +0200 Subject: [PATCH] If there's multiple discs, prepend tracks with the disc number --- .config/beets/config.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.config/beets/config.yaml b/.config/beets/config.yaml index 29f497f..728165d 100644 --- a/.config/beets/config.yaml +++ b/.config/beets/config.yaml @@ -8,17 +8,17 @@ threaded: yes paths: # default: $albumartist/$year - $album/$track $artist - $title - default: %the{$albumartist}/$year - $album%aunique{}/$track $artist - $title + default: %the{$albumartist}/$year - $album%aunique{}/%if{$multidisc,$disc-}$track $artist - $title singleton: Singletons/$artist - $title - comp: Compilations/$album%aunique{}/$track $artist - $title - albumtype:soundtrack: Soundtracks/$album%aunique{}/$track $artist - $title + comp: Compilations/$album%aunique{}/%if{$multidisc,$disc-}$track $artist - $title + albumtype:soundtrack: Soundtracks/$album%aunique{}/%if{$multidisc,$disc-}$track $artist - $title import: write: yes copy: yes move: no resume: ask - incremental: yes + #incremental: yes log: beetslog.log ignore: .AppleDouble ._* *~ .DS_Store @@ -30,6 +30,7 @@ plugins: [ fetchart, ftintitle, importadded, + inline, the, ] @@ -49,3 +50,6 @@ ftintitle: importadded: preserve_mtimes: yes preserve_write_mtimes: yes + +item_fields: + multidisc: 1 if disctotal > 1 else 0