How to have beets create a subfolder for each multidisc, but not for a single disc album

How do I get multidiscs and single discs to output in this manner?
artist/album/Disc 01: disctitle/artist - track
artist/album/Disc 01/artist - track
artist/album/artist - track

Right now I can get it to output the 1st and 2nd examples with a - instead of a :, but single disc albums also create a subfolder called Disc 01. Using a : always gives a syntax error, so I went with a -. I thought the “else 0” in multidisc: 1 if disctotal > 1 else 0 would not create a separate subfolder, but it does. To be honest I am surprised I got it to work this far. Been at this for a few days now and finally decided to ask for help. Any help would be greatly appreciated! Thank you for this great piece of software too!

embedart:
compare_threshold: 0
auto: yes
ifemtpy: yes
remove_art_file: no
maxwidth: 0
ifempty: no
quality: 0
lyrics:
bing_lang_from: []
auto: yes
force: no
google_APi_key: REDACTED
google_engine_ID: REDACTED
bing_client_secret: REDACTED
bing_lang_to:
google_API_key: REDACTED
genius_api_key: REDACTED
fallback:
local: no
sources:
- google
- musixmatch
- genius
- tekstowo
library: /config/musiclibrary.blb
directory: /music

plugins: discogs albumtypes badfiles chroma convert embedart fetchart ftintitle inline importadded embyupdate lastgenre lyrics scrub replaygain web zero

replace:
^.: _
‘[\x00-\x1f]’: _
‘[<>:"?*|]’: _
‘[\xE8-\xEB]’: e
‘[\xEC-\xEF]’: i
‘[\xE2-\xE6]’: a
‘[\xF2-\xF6]’: o
‘[\xF8]’: o
.$: _
\s+$: ‘’
...$: ‘’
art_filename: ‘%title{$albumartist} - %title{$album}’
threaded: yes
original_date: yes
per_disc_numbering: yes

aunique:
keys: albumartist album
disambiguators: albumtype year label catalognum albumdisambig releasegroupdisambig
bracket: ‘[]’

clutter: [Thumbs.DB, .DS_Store]
va_name: Various Artists

ui:
color: yes

import:
write: yes
copy: no
move: yes
resume: ask
incremental: no
quiet_fallback: skip
timid: no
log: /config/beet.log
detail: no
duplicate_action: ask
bell: yes

musicbrainz:
extra_tags:
- year
- catalognum
- country
- media
- label

match:
strong_rec_thresh: 0.01
ignore_data_tracks: no
ignore_video_tracks: no

paths:
default: $albumartist/$album%aunique{}/%if{multidisc,Disc $disc %if{$disctitle,- $disctitle}/}%title{$albumartist} - $title
singleton: $albumartist/Singles/%title{$artist} - %title{$title}
comp: Compilations/$album%aunique{}/%if{multidisc,Disc $disc %if{$disctitle,- $disctitle}/}%title{$albumartist} - $title
compilation: Compilations/$album%aunique{}/%if{multidisc,Disc $disc %if{$disctitle,- $disctitle}/}%title{$albumartist} - $title}
albumtype_soundtrack: Soundtracks/$album%aunique{}/%if{multidisc,Disc $disc %if{$disctitle,- $disctitle}/}%title{$albumartist} - $title
Soundtrack: Soundtracks/$album%aunique{}/%if{multidisc,Disc $disc %if{$disctitle,- $disctitle}/}%title{$albumartist} - $title
va: Various Artists/$album%aunique{}/%if{multidisc,Disc $disc %if{$disctitle,- $disctitle}/}%title{$albumartist} - $title
discogs:
index_tracks: yes
source_weight: 0
user_token: REDACTED
separator: ‘,’
apikey: REDACTED
apisecret: REDACTED
tokenfile: discogs_token.json
fetchart:
auto: yes
google_key: REDACTED
google_engine:
minwidth: 0
maxwidth: 0
quality: 0
max_filesize: 0
enforce_ratio: no
cautious: no
cover_names:
- cover
- front
- art
- album
- folder
sources:
- filesystem
- coverart
- itunes
- amazon
- albumart
fanarttv_key: REDACTED
lastfm_key: REDACTED
store_source: no
high_resolution: no
deinterlace: no
cover_format:
ftintitle:
auto: yes
drop: no
format: feat. {0}
importadded:
preserve_write_mtimes: yes
preserve_mtimes: no
lastgenre:
auto: yes
source: artist
whitelist: yes
min_weight: 10
count: 1
fallback:
canonical: no
force: yes
separator: ', ’
prefer_specific: no
title_case: yes
replaygain:
auto: no
overwrite: no
backend: command
threads: 4
parallel_on_import: no
per_disc: no
peak: ‘true’
targetlevel: 89
r128: [Opus]
r128_targetlevel: 84
command: ‘’
noclip: yes
scrub:
auto: no
zero:
keep_fields: images
auto: yes
fields: []
update_database: no
albumtypes:
types:
- ep: EP
- single: Single
- live: Live
- compilation: Compilation
- remix: Remix
- va: Various Artists
- DJ-mix: DJ-mix
ignore_va: none
bracket: ‘[]’
item_fields:
multidisc: 1 if disctotal > 1 else 0
badfiles:
check_on_import: yes
commands:
flac: flac --test --warnings-as-errors --silent
emby:
host: localhost
port: 8096
username: REDACTED
password: REDACTED
apikey:
convert:
auto: yes
embed: yes
id3v23: no
max_bitrate: 2000
no_convert: flac
never_convert_lossy_files: yes
delete_originals: yes
format: flac
command: ffmpeg -i -y -vn -acodec
extension: flac
ffmpeg: /usr/bin/ffmpeg
opts: -ab 320k -ac 2 -ar 48000
dest:
pretend: no
link: no
hardlink: no
threads: 4
formats:
aac:
command: ffmpeg -i $source -y -vn -acodec aac -aq 1 $dest
extension: m4a
alac:
command: ffmpeg -i $source -y -vn -acodec alac $dest
extension: m4a
flac: ffmpeg -i $source -y -vn -acodec flac $dest
mp3: ffmpeg -i $source -y -vn -aq 2 $dest
opus: ffmpeg -i $source -y -vn -acodec libopus -ab 96k $dest
ogg: ffmpeg -i $source -y -vn -acodec libvorbis -aq 3 $dest
wma: ffmpeg -i $source -y -vn -acodec wmav2 -vn $dest
tmpdir:
quiet: no

paths: {}
copy_album_art: no
album_art_maxwidth: 0

web:
host: 0.0.0.0
port: 8337
cors: ‘’
cors_supports_credentials: no
reverse_proxy: no
include_paths: no
readonly: yes
pathfields: {}
album_fields: {}
chroma:
auto: yes

Here’s how I have it:

paths:
  default: $mygenre/$albumartist/$original_year - $album%aunique{} [%upper{$format}]/%if{$multidisc,CD$disc/}$track - $title

The part where you have ‘if multidisc’ is the one creating the directories/folders for each disc. I’ve set it to CD$disc because I only have CDs ripped, but you can name them how you want, just remember that $disc will give you the disc number.

Side note: when you post code, embed it between ``` (three back ticks) like this ```.

LE: oh, damn, you have a huge config and I saw after posting that you already have path formatting using multidisc.