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

**URL:** <https://discourse.beets.io/t/how-to-have-beets-create-a-subfolder-for-each-multidisc-but-not-for-a-single-disc-album/1999>\
**Category:** Help\
**Created:** [January 22, 2022, 11:32am UTC](https://discourse.beets.io/t/how-to-have-beets-create-a-subfolder-for-each-multidisc-but-not-for-a-single-disc-album/1999 "2022-01-22T11:32:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kinspappy](https://avatars.discourse-cdn.com/v4/letter/k/df705f/32.png) [@Kinspappy](https://discourse.beets.io/u/Kinspappy)\
**Post date:** [January 22, 2022, 11:32am UTC](https://discourse.beets.io/t/how-to-have-beets-create-a-subfolder-for-each-multidisc-but-not-for-a-single-disc-album/1999/1 "2022-01-22T11:32:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![clmbmb](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/clmbmb/32/289_2.png) [@clmbmb](https://discourse.beets.io/u/clmbmb)\
**Post date:** [January 28, 2022, 12:39pm UTC](https://discourse.beets.io/t/how-to-have-beets-create-a-subfolder-for-each-multidisc-but-not-for-a-single-disc-album/1999/2 "2022-01-28T12:39:24Z")

</div>

Here’s how I have it:

```auto
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`.
