home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
HTPC Projects
Software
Tools and other software
MusicBrainz Picard - Script renaming/moving files ( no help / sharing only )
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="azzuro" data-source="post: 1223396" data-attributes="member: 50482"><p>Hello,</p><p></p><p>i want to share my script for rename/move Audio files using Musicbrainz Picard.</p><p>for information, an portable is available on portableapps.com, i use it for use it as portable and not lost my setting, because all settings are stored inside windows registry</p><p></p><p>the convention is :</p><p></p><p>[code=Winbatch]Root</p><p>--> %AlbumArtist%</p><p> | ---> %Year% - %Album% [Extension file]</p><p> | ---> %DiscNumber%-%Track% - %Title% [%Artists% featuring without the %AlbumArtist%].ext</p><p> or</p><p> | ---> %Track% - %Title% [%Artists% featuring]</p><p> | ---> %Title%.ext (if music without album or extracted from album)</p><p> | ---> %Artists% - %Title%.ext (if music without album or extracted from album and have multi Artists)</p><p></p><p>--> Various Artists</p><p> | ---> %Album% [%ExtensionFile%]</p><p> | ---> %Artist% - %Title%.ext[/code]</p><p></p><p></p><p>for sorting by albumartist, if the tag is missing you need to add it before save files.</p><p>don't forget to remove album / track, if the file is alone or you want it </p><p></p><p>for the discnumber before title, the tag " %totaldiscs% must be present, only use the %discnumber% will break the convention. </p><p></p><p>Adapt the code to the Various Artists name from your setting :</p><p>$set(_variousartist,Various Artists)</p><p></p><p>if you see few error during renaming, you can includ for example : XXX1XXX before " %artist% -" for know what line is used for your files. </p><p></p><p>the code is not perfect, and maybe need few correction,</p><p></p><p></p><p>[CODE=WinBatch]$noop( # set variable read for use in script )</p><p>$setmulti(multiartists2,%artists%,)</p><p>$set(multiartists3,$replace(%multiartists2%,%albumartist%; ,))</p><p>$set(multiartists4,$replace(%multiartists3%,;, &))</p><p>$set(_variousartist,Various Artists)</p><p></p><p>$noop( if albumartist is not available, use artist as albumartist)</p><p>$if($not(%albumartist%),$set(albumartist,%artist%),)</p><p></p><p>$noop( check if the %albumartist% name = %artist%, if different it recognize the album as VariousArtist or Compilation)</p><p>$if2(%albumartist%,%artist%)</p><p></p><p>$noop( create an subfolder, only if tag contain album tag, else move it inside the Artist folder )</p><p>$if(%album%,</p><p>$noop( new subfolder)</p><p>/</p><p>$noop( if it is an album "artist = albumartist" or "artist = contain "various artist" name" , date is added before the album name)</p><p>$if($or($inmulti(%artists%,%albumartist%),$if($eq(%albumartist%,%_variousartist%),,1)),$if2($if(%originaldate%,$left(%originaldate%,4) - ,),$if(%date%,$left(%date%,4) - ,)))</p><p></p><p>$noop( if Compilation, only use albumname as folder name)</p><p>$if($ne(%albumartist%,),%album%)</p><p></p><p>$noop( add extension file to the album name)</p><p>[$upper(%_extension%)]</p><p>,)</p><p></p><p>$noop( new subfolder)</p><p>/</p><p>$if($and(%album%,%tracknumber%),</p><p>$noop( check if the album contain many disc, if yes, the disc number is added before the track number)</p><p>$if($gt(%totaldiscs%,1),$num(%discnumber%,1)-,)$if($ne(%albumartist%,),$num(%tracknumber%,2) - ,)</p><p>,)</p><p>$noop(file name: various artiste : artist name + title track OR Artistalbum + featuring , is keep the title track only as above +"feat. Artist name")</p><p></p><p>$noop(file name Various artists : Artist - title track ---------------- TESTING LINE XXX1XXX --------------- )</p><p>$if($and($and($ne(%artist%,%albumartist%),$ne(%albumartist%,%_variousartist%)),$not($in(%artist%,%albumartist%))),%artist% - ,)</p><p></p><p>$noop(file name Various Artists : Artist - title track ---------------- TESTING LINE XXX2XXX ---------------)</p><p>$if($and($and($ne(%artist%,%albumartist%),$eq(%albumartist%,%_variousartist%)),$not($in(%artist%,%albumartist%))),%artist% - ,)</p><p></p><p></p><p>$noop(file name Various Artist : Artist - title track ---------------- TESTING LINE XXX3XXX ---------------)</p><p>$if($and($and(%artists%,$if($in(%artist%,%albumartist%),,1)),$ne(%albumartist%,%_variousartist%)),%artist% - ,)</p><p>$noop( mis de coté pour le moment)</p><p></p><p></p><p>$noop(file name Artist album + artists avaiblable + no track number : Artist - title track ---------------- TESTING LINE XXX4XXX ---------------)</p><p>$if($and($and($and($not(%tracknumber%),$ne(%artists%,%artist%)),$in(%artist%,%albumartist%)),$ne(%albumartist%,%_variousartist%)),%artist% - ,)</p><p>$noop( mis de coté pour le moment)</p><p></p><p>$noop(file name : title track)</p><p>%title%</p><p></p><p>$noop(file name Album Artist + featuring : title track [feat. xxx] )</p><p>$if($if($and($if($and($in(%artist%,%albumartist%),%artists%),1,),$if($eq(%artist%,%albumartist%),,1)),,1),, [feat. %multiartists4%])</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="azzuro, post: 1223396, member: 50482"] Hello, i want to share my script for rename/move Audio files using Musicbrainz Picard. for information, an portable is available on portableapps.com, i use it for use it as portable and not lost my setting, because all settings are stored inside windows registry the convention is : [code=Winbatch]Root --> %AlbumArtist% | ---> %Year% - %Album% [Extension file] | ---> %DiscNumber%-%Track% - %Title% [%Artists% featuring without the %AlbumArtist%].ext or | ---> %Track% - %Title% [%Artists% featuring] | ---> %Title%.ext (if music without album or extracted from album) | ---> %Artists% - %Title%.ext (if music without album or extracted from album and have multi Artists) --> Various Artists | ---> %Album% [%ExtensionFile%] | ---> %Artist% - %Title%.ext[/code] for sorting by albumartist, if the tag is missing you need to add it before save files. don't forget to remove album / track, if the file is alone or you want it for the discnumber before title, the tag " %totaldiscs% must be present, only use the %discnumber% will break the convention. Adapt the code to the Various Artists name from your setting : $set(_variousartist,Various Artists) if you see few error during renaming, you can includ for example : XXX1XXX before " %artist% -" for know what line is used for your files. the code is not perfect, and maybe need few correction, [CODE=WinBatch]$noop( # set variable read for use in script ) $setmulti(multiartists2,%artists%,) $set(multiartists3,$replace(%multiartists2%,%albumartist%; ,)) $set(multiartists4,$replace(%multiartists3%,;, &)) $set(_variousartist,Various Artists) $noop( if albumartist is not available, use artist as albumartist) $if($not(%albumartist%),$set(albumartist,%artist%),) $noop( check if the %albumartist% name = %artist%, if different it recognize the album as VariousArtist or Compilation) $if2(%albumartist%,%artist%) $noop( create an subfolder, only if tag contain album tag, else move it inside the Artist folder ) $if(%album%, $noop( new subfolder) / $noop( if it is an album "artist = albumartist" or "artist = contain "various artist" name" , date is added before the album name) $if($or($inmulti(%artists%,%albumartist%),$if($eq(%albumartist%,%_variousartist%),,1)),$if2($if(%originaldate%,$left(%originaldate%,4) - ,),$if(%date%,$left(%date%,4) - ,))) $noop( if Compilation, only use albumname as folder name) $if($ne(%albumartist%,),%album%) $noop( add extension file to the album name) [$upper(%_extension%)] ,) $noop( new subfolder) / $if($and(%album%,%tracknumber%), $noop( check if the album contain many disc, if yes, the disc number is added before the track number) $if($gt(%totaldiscs%,1),$num(%discnumber%,1)-,)$if($ne(%albumartist%,),$num(%tracknumber%,2) - ,) ,) $noop(file name: various artiste : artist name + title track OR Artistalbum + featuring , is keep the title track only as above +"feat. Artist name") $noop(file name Various artists : Artist - title track ---------------- TESTING LINE XXX1XXX --------------- ) $if($and($and($ne(%artist%,%albumartist%),$ne(%albumartist%,%_variousartist%)),$not($in(%artist%,%albumartist%))),%artist% - ,) $noop(file name Various Artists : Artist - title track ---------------- TESTING LINE XXX2XXX ---------------) $if($and($and($ne(%artist%,%albumartist%),$eq(%albumartist%,%_variousartist%)),$not($in(%artist%,%albumartist%))),%artist% - ,) $noop(file name Various Artist : Artist - title track ---------------- TESTING LINE XXX3XXX ---------------) $if($and($and(%artists%,$if($in(%artist%,%albumartist%),,1)),$ne(%albumartist%,%_variousartist%)),%artist% - ,) $noop( mis de coté pour le moment) $noop(file name Artist album + artists avaiblable + no track number : Artist - title track ---------------- TESTING LINE XXX4XXX ---------------) $if($and($and($and($not(%tracknumber%),$ne(%artists%,%artist%)),$in(%artist%,%albumartist%)),$ne(%albumartist%,%_variousartist%)),%artist% - ,) $noop( mis de coté pour le moment) $noop(file name : title track) %title% $noop(file name Album Artist + featuring : title track [feat. xxx] ) $if($if($and($if($and($in(%artist%,%albumartist%),%artists%),1,),$if($eq(%artist%,%albumartist%),,1)),,1),, [feat. %multiartists4%]) [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
HTPC Projects
Software
Tools and other software
MusicBrainz Picard - Script renaming/moving files ( no help / sharing only )
Contact us
RSS
Top
Bottom