Picard
WIP
Plugins
sudo pacman -S aubio
ReplayGain, Soundtrack, Apiseeds Lyrics, BPM Analyzer.
list of additional files to move with the tracks
*.jpg *.gif *.tif *.png *.bmp *.db *.wpk *.log *.pdf *.doc *.txt *.cue *.sfk *.m3u *.jpeg *.sfv *.md5 *.pls *.htm *.rtf *.alb *.tunebite *.lrc
Rename format
https://picard.musicbrainz.org/docs/mappings/ https://picard.musicbrainz.org/docs/scripting/
$if(
$if2(%albumartist%,%album%),
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album%/%tracknumber% - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%,
$if2(%albumartist%,%artist%)/$if2(%albumartist%,%artist%) - \($left(%date%,4)\) - %title%)
---
$if(
$noop(if it is a single with only one song)
$and($eq(%releasetype%,single),$eq(%totaltracks%,1)),
$noop(leave it in the albumartist folder)
$if2(%albumartist%,%artist%)/$left(%date%,4) - $if2(%albumartist%,%artist%) - %title% \(Single\),
$noop(else proceed as normal)
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album%/%tracknumber% - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%
)
---
$if(
$noop(if it is a single)
$eq(%releasetype%,single),
$if(
$gte(%totaltracks%,2),
$noop(if it has more than one track)
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album% \(Single\)/%tracknumber% - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%,
$noop(if it only has one track)
$if2(%albumartist%,%artist%)/$left(%date%,4) - $if2(%albumartist%,%artist%) - %title% \(Single\)
),
$noop(if it is not a single)
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album%/%tracknumber% - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%
)
---
$if( $and( $eq( %releasetype% , single ) , $eq( 1 , %totaltracks% ) ) , $set(_single,) )
$if(
%_single%,
$if2(%albumartist%,%artist%)/$left(%date%,4) - $if2(%albumartist%,%artist%) - %title% \(Single\),
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album%/$num(%tracknumber%,2) - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%
)
---
DEFAULT
$if2(%albumartist%,%artist%)/$if($ne(%albumartist%,),%album%/,)$if($gt(%totaldiscs%,1),%discnumber%-,)$if($ne(%albumartist%,),$num(%tracknumber%,2) ,)$if(%_multiartist%,%artist% - ,)%title%
---
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album%/$num(%tracknumber%,2) - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%
---
$if(
$eq($lower(%releasetype%),single),
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album% \(Single\)/$num(%tracknumber%,2) - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%
)
$if(
$eq($lower(%releasetype%),album),
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album%/%tracknumber% - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%
)
---
WIP
$if(
$eq(%releasetype%,single),
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album% \(Single\)/$num(%tracknumber%,2) - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%,
$if(
$eq(%releasetype%,soundtrack),
)
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album%/%tracknumber% - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%
)
---
Seems to work (the spaces where the problem)
$if($and($eq(%releasetype%,single),$eq(%totaltracks%,1)),
$if2(%albumartist%,%artist%)/$left(%date%,4) - $if2(%albumartist%,%artist%) - %title% \(Single\),
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album%/%tracknumber% - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%
)
---
$if($and($eq(%releasetype%,single),$eq(%totaltracks%,1)),
$if2(%albumartist%,%artist%)/$left(%date%,4) - $if2(%albumartist%,%artist%) - %title% \(Single\),
$if($eq(%releasetype%,single),
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album% \(Single\)/$num(%tracknumber%,2) - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%,
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album%/$num(%tracknumber%,2) - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%
)
)
---
$set(_trackNumberLenght,$if($lt(%tracknumber%,10),1,$if($lt(%tracknumber%,100),2,3)))
$if($and($eq(%releasetype%,single),$eq(%totaltracks%,1)),
$if2(%albumartist%,%artist%)/$left(%date%,4) - $if2(%albumartist%,%artist%) - %title% \(Single\),
$if($eq(%releasetype%,single),
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album% \(Single\)/$num(%tracknumber%,%_trackNumberLenght%) - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%,
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album%/$num(%tracknumber%,%_trackNumberLenght%) - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%
)
)
---
$if($lt(%totaltracks%,10),$set(_trackNumberLenght,1))
$if($and($gte(%totaltracks%,10),$lt(%totaltracks%,100)),$set(_trackNumberLenght,2))
$if($gte(%totaltracks%,100),$set(_trackNumberLenght,3))
$if($and($eq($lower(%releasetype%),single),$eq(%totaltracks%,1)),
$if2(%albumartist%,%artist%)/$left(%date%,4) - $if2(%albumartist%,%artist%) - %title% \(Single\),
$if($eq(%releasetype%,single),
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album% \(Single\)/$num(%tracknumber%,%_trackNumberLenght%) - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%,
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album%/$num(%tracknumber%,%_trackNumberLenght%) - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%
)
)
----
$if($lt(%totaltracks%,10),$set(_trackNumberLenght,1))
$if($and($gte(%totaltracks%,10),$lt(%totaltracks%,100)),$set(_trackNumberLenght,2))
$if($gte(%totaltracks%,100),$set(_trackNumberLenght,3))
$if($and($eq($lower(%releasetype%),single),$eq(%totaltracks%,1)),
$if2(%albumartist%,%artist%)/$left(%date%,4) - $if2(%albumartist%,%artist%) - %title% \(Single\),
$if($eq(%releasetype%,single),
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album% \(Single\)/$if2(%albumartist%,%artist%) $if(%album%,- %album% - )$num(%tracknumber%,%_trackNumberLenght%) - %title%,
$if2(%albumartist%,%artist%)/$left(%date%,4) - %album%/$if2(%albumartist%,%artist%) $if(%album%,- %album% - )$if($gt(%totaldiscs%,1),\(Disc %discnumber%\) - )$num(%tracknumber%,%_trackNumberLenght%) - %title%
)
)
$if($eq(%releasetype%,album),$if2(%albumartist%,%artist%)/$left(%date%,4) - %album%/%tracknumber% - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%,$if($eq(%releasetype%,single),$if2(%albumartist%,%artist%)/$left(%date%,4) - $if2(%albumartist%,%artist%) - %title%)) $if($eq(%releasetype%,album),$if($and($eq(%releasetype%,single),$eq(%totaltracks%,1)),$if2(%albumartist%,%artist%)/$left(%date%,4) - $if2(%albumartist%,%artist%) - %title%),$if2(%albumartist%,%artist%)/$left(%date%,4) - %album%/%tracknumber% - $if2(%albumartist%,%artist%) $if(%album%,- %album% - )%title%)