Add _showMediaType configuration variable to hide media format in folder names #1

Open
opened 2026-02-01 08:54:19 +01:00 by FrederikBaerentsen · 0 comments
Owner

Currently, the script always displays the media type and file format in album folder names (e.g., [CD - MP3], [Vinyl - FLAC]) when the %media% tag is present. There's no configuration option to disable this. Current behavior:

/B/Beatles, The/(1969) Abbey Road [CD - MP3]/

Desired behavior with _showMediaType set to 0:

/B/Beatles, The/(1969) Abbey Road/

Implementation: Add a new configuration variable in Section 2.2:

$noop( Show Media Type in Album Folder Name )
$noop(   0 = Don't show media type )
$noop(   1 = Show media type [CD - MP3] [Vinyl - FLAC] )
$noop(   Example: "(1985) Album [CD - MP3]" vs "(1985) Album" )
$set(_showMediaType,1)

Then modify line 1134 from:

$noop( Media Type - [Vinyl] [CD] )
$if(%media%, [$title(%media% - $upper(%_extension%)]),)

To:

$noop( Media Type - [Vinyl] [CD] )
$if($eq(%_showMediaType%,1),$if(%media%, [$title(%media% - $upper(%_extension%)]),))

Until implemented, we can disable this by wrapping line 1134 in $noop():

$noop($if(%media%, [$title(%media% - $upper(%_extension%)]),))
Currently, the script always displays the media type and file format in album folder names (e.g., `[CD - MP3]`, `[Vinyl - FLAC]`) when the `%media%` tag is present. There's no configuration option to disable this. Current behavior: ``` /B/Beatles, The/(1969) Abbey Road [CD - MP3]/ ``` Desired behavior with `_showMediaType` set to `0`: ``` /B/Beatles, The/(1969) Abbey Road/ ``` Implementation: Add a new configuration variable in Section 2.2: ``` $noop( Show Media Type in Album Folder Name ) $noop( 0 = Don't show media type ) $noop( 1 = Show media type [CD - MP3] [Vinyl - FLAC] ) $noop( Example: "(1985) Album [CD - MP3]" vs "(1985) Album" ) $set(_showMediaType,1) ``` Then modify line 1134 from: ``` $noop( Media Type - [Vinyl] [CD] ) $if(%media%, [$title(%media% - $upper(%_extension%)]),) ``` To: ``` $noop( Media Type - [Vinyl] [CD] ) $if($eq(%_showMediaType%,1),$if(%media%, [$title(%media% - $upper(%_extension%)]),)) ``` Until implemented, we can disable this by wrapping line 1134 in `$noop()`: ``` $noop($if(%media%, [$title(%media% - $upper(%_extension%)]),)) ```
FrederikBaerentsen added the Kind/Enhancement label 2026-02-01 08:54:26 +01:00
Sign in to join this conversation.