Re: Repository for cool file naming parameter strings

Thanks Voice!  Its working a treat. 
My next alteration will be to work out how to change 'THE ROLLING STONES' to 'ROLLING STONES, THE', which I gather is fairly common, I'll search for it.
Also, I'm noticing some album folders aren't as complete as I thought, ie missing tracks.  Is there a tool that can scan your library and report incomplete albums??

Re: Repository for cool file naming parameter strings

One choice is to replace %albumartist% with %albumartistsort%. This will make all artists conform to http://wiki.musicbrainz.org/Style/Artist/Sort_Name - it'd also mean individual artists become Lastname, Firstname though - so depends what you want.

If you specifically only want to change those starting with "The ", replace %albumartist% with

$if($eq($left(%albumartist%,4),The ),$rreplace(%albumartist%,^The ,)\, The,%albumartist%)

You could do the same with %artist% if you wanted also.

Re: Repository for cool file naming parameter strings

Tigertales wrote:

Is there a tool that can scan your library and report incomplete albums??

You coud try this

Re: Repository for cool file naming parameter strings

voiceinsideyou wrote:

One choice is to replace %albumartist% with %albumartistsort%. This will make all artists conform to http://wiki.musicbrainz.org/Style/Artist/Sort_Name - it'd also mean individual artists become Lastname, Firstname though - so depends what you want.

If you specifically only want to change those starting with "The ", replace %albumartist% with

$if($eq($left(%albumartist%,4),The ),$rreplace(%albumartist%,^The ,)\, The,%albumartist%)

You could do the same with %artist% if you wanted also.


OK, tried it, but it only replaced it in the song title of the FLAC file itself.  So I probably put it in the wrong place.  But looking at it now I think it may be better to just have the top level of the file tree replaced, eg;

ROLLING STONES, THE/The Rolling Stones - 1963 - Abcd/

Thoughts?

Re: Repository for cool file naming parameter strings

You need to replace it in both places. Anyway; this is "repository for cool file naming parameter strings" - not "uber thread for all support questions on file naming strings" - it's diverging far from the purpose of this topic.

Please create a new thread.

81 (edited by volcs0 2012-07-29 22:08:35)

Re: Repository for cool file naming parameter strings

This is the default, replacing spaces with underscores and removing commas.

This is mainly so I can traverse directories via the command line, since it is easier without spaces.

$rreplace(
$rreplace(
$if2(%albumartist%,%artist%)/%album%/
$if($gt(%totaldiscs%,1),%discnumber%-,)$num(%tracknumber%,2)
$if(%compilation%, %artist% -,) %title%
,[ +\,-],_)
,_+,_)

Picard Example output:
/The_Beatles/Help!/07_Ticket_to_Ride.mp3
/Various_Artists/Explosive_Doowops_Volume_4/2_05_The_Fanatasys_Why__Oh_Why_.mp3

*** edit: I've messed with it a bit. There are still double underscores and a trailing underscore that I simply cannot figure out.

Am including this metadata, so it comes up in google search. I had a hard time finding this information, until I finally just read this post and got to page 3...  :-)

"musicbrainz picard replace commas"

Re: Repository for cool file naming parameter strings

Hiya!!

I am new to this software.

I have my old hard drive with over 12,000 mp3 files.  All of the filenames are nonsensical random letters and numbers.  And therefore unidentifiable.

I'd like to run Picard overnight and allow it to scan, label, and rename *ALL* of the mp3 files on my hard drive, in one shot.

Ideally something like this.

[artist] - [album] - [track number] - [song title]

...what can I do to make this work?

~ Michael

Re: Repository for cool file naming parameter strings

micsmeets wrote:

Hiya!!
...what can I do to make this work?

I would recommend starting a new topic for this, so that people can respond to your specific problem, which is not really about “cool file naming parameter strings”.

Re: Repository for cool file naming parameter strings

Wow,thanks a lot.

Re: Repository for cool file naming parameter strings

A better way to remove "The " or move it to the end would be to use MB's sort names

Re: Repository for cool file naming parameter strings

Having no programming background, would it be that difficult to put a system into Picard that had all the possible options for naming in a pull-down box and let the user add them in whatever fashion they desired?  I know Mediamonkey had a naming convention something like that which might make a thread like this almost unnecessary other than for some really complex naming schemes.

Re: Repository for cool file naming parameter strings

sinlyn wrote:

A better way to remove "The " or move it to the end would be to use MB's sort names

Thx, sin, but where do I find that option??

Re: Repository for cool file naming parameter strings

wentuq wrote:

File Naming Format:

$set(issoundtrack,$if($eq(%releasetype%,soundtrack),1,0))
$set(artist,$if2(%albumartist%,%artist%))
$set(artist,$if($eq($left(%artist%,4),The ),$rreplace(%artist%,^The ,)\, The,%artist%))
$set(title,$replace(%title%,...,…))
$set(album,$replace(%album%,...,…))
$set(date,$left(%date%,4))
$set(albumdate,$if(%date%,%date%-%album%,%album%))
$set(tracknumber,$if(%tracknumber%,$if($eq(%tracknumber%,0),0,%tracknumber%),0))
$set(tracknumber,$if($eq(%tracknumber%,0),%tracknumber%,$if($eq($len(%tracknumber%),3),$num(%tracknumber%,3),$num(%tracknumber%,2))))
$set(tracktitle,$if($eq(%tracknumber%,0),%title%,%tracknumber%-%title%))
$if($eq(%issoundtrack%,1),OST/%album%/%tracknumber%-%artist%-%title%,%artist%/%albumdate%/%tracktitle%)

Multiple Artist file naming format:

$set(issoundtrack,$if($eq(%releasetype%,soundtrack),1,0))
$set(title,$replace(%title%,...,…))
$set(album,$replace(%album%,...,…))
$set(tracknumber,$if(%tracknumber%,$if($eq(%tracknumber%,0),0,%tracknumber%),0))
$set(tracknumber,$if($eq(%tracknumber%,0),%tracknumber%,$if($eq($len(%tracknumber%),3),$num(%tracknumber%,3),$num(%tracknumber%,2))))
$set(trackartisttitle,$if($eq(%tracknumber%,0),%artist%-%title%,%tracknumber%-%artist%-%title%))
$if($eq(%issoundtrack%,1),OST/%album%/%tracknumber%-%artist%-%title%,VA/%album%/%trackartisttitle%)

Preview Results

/media/drive/picard/Beatles, The/1965-Help!/07-Ticket to Ride.mp3
/media/drive/picard/VA/Explosive Doowops, Volume 4/05-The Fantasys-Why? Oh Why?.mp3

*This code is really easy to change

Hi all,

Above is exactly what I want to do, I just wanted to check that it will still work with the latest release of Picard as I notices some posts mentioning some changes in the way thing work?

The only other thing I wanted to check how does the above handle multiple CD albums? Ideally I'd like them to all go in the same album folder but with the track numbers 101, 102...201,202 etc

Many thanks in advance

Re: Repository for cool file naming parameter strings

wentuq wrote:

File Naming Format:

$set(issoundtrack,$if($eq(%releasetype%,soundtrack),1,0))
$set(artist,$if2(%albumartist%,%artist%))
$set(artist,$if($eq($left(%artist%,4),The ),$rreplace(%artist%,^The ,)\, The,%artist%))
$set(title,$replace(%title%,...,…))
$set(album,$replace(%album%,...,…))
$set(date,$left(%date%,4))
$set(albumdate,$if(%date%,%date%-%album%,%album%))
$set(tracknumber,$if(%tracknumber%,$if($eq(%tracknumber%,0),0,%tracknumber%),0))
$set(tracknumber,$if($eq(%tracknumber%,0),%tracknumber%,$if($eq($len(%tracknumber%),3),$num(%tracknumber%,3),$num(%tracknumber%,2))))
$set(tracktitle,$if($eq(%tracknumber%,0),%title%,%tracknumber%-%title%))
$if($eq(%issoundtrack%,1),OST/%album%/%tracknumber%-%artist%-%title%,%artist%/%albumdate%/%tracktitle%)

Multiple Artist file naming format:

$set(issoundtrack,$if($eq(%releasetype%,soundtrack),1,0))
$set(title,$replace(%title%,...,…))
$set(album,$replace(%album%,...,…))
$set(tracknumber,$if(%tracknumber%,$if($eq(%tracknumber%,0),0,%tracknumber%),0))
$set(tracknumber,$if($eq(%tracknumber%,0),%tracknumber%,$if($eq($len(%tracknumber%),3),$num(%tracknumber%,3),$num(%tracknumber%,2))))
$set(trackartisttitle,$if($eq(%tracknumber%,0),%artist%-%title%,%tracknumber%-%artist%-%title%))
$if($eq(%issoundtrack%,1),OST/%album%/%tracknumber%-%artist%-%title%,VA/%album%/%trackartisttitle%)

Preview Results

/media/drive/picard/Beatles, The/1965-Help!/07-Ticket to Ride.mp3
/media/drive/picard/VA/Explosive Doowops, Volume 4/05-The Fantasys-Why? Oh Why?.mp3

*This code is really easy to change

so i tried this, i entered them both in the same 'name files like this' window, just with a blank line between, is that right?!

its not working out in the preview, getting folders within folders of same name and its just looks a mess.
cant copy the preview text for some reason.

is this out dated now?
thanks all!

90 (edited by Rovastar 2013-04-11 22:51:50)

Re: Repository for cool file naming parameter strings

That is outdated

You need something like this (this is mine and omits a few things like 'artist, the' and the soundtrack stuff album sorting stuff there and I added [EP] {single} for those releases (because I have albums and singles/EP with the same name) which you can add)

$if2(%albumartist%,%artist%) - %album%
$if(%date%,[$left(%date%,4)] )
$if($eq(%releasetype%,ep),[EP])
$if($eq(%releasetype%,single),[Single])
/
$if($gt(%totaldiscs%,1),%discnumber%-,)$num(%tracknumber%,2)
$if(%compilation%, %artist%) - %title%

Re: Repository for cool file naming parameter strings

thanks, think i have managed to sort it...!

92 (edited by rfletch12 2013-05-01 01:19:24)

Re: Repository for cool file naming parameter strings

Here's a rather large file naming string.  I've used mp3tag for years so since this scripting was similar it didn't take long to pick it up, I also robbed bits and pieces from this thread.  If anyone has any question on use let me know.  Very nice product, wished i had discovered it sooner.

$noop(<!-- MusicBrainz Picard 1.2 naming script -->)
$noop(<!-- Version 0.2 by rfletch12 -->)

$noop(<!-- Initialze character replacements -->)
$replace($noop(?)
$replace($noop(:)
$replace($noop(")
$replace($noop(|)
$replace($noop(<)
$replace($noop(>)
$replace($noop(.)
$replace($noop( ⁄ )

$noop(<!-- Determine Release Type -->)
$noop(<!-- Creates top level folder structure -->)
$noop(<!-- No MBID / Spoken Word / Soundtracks / Tribute / Compilations / Promo's / Incomplete Tracks / Artists -->)

$if2(
$if($eq($len(%musicbrainz_albumid%),0),No MBID/$if2(%albumartist%,%artist%),)
,$if($eq(%releasetype%,spokenword),Spoken Word/$if2(%albumartist%,%artist%),)
,$if($eq(%releasetype%,audiobook),Spoken Word/$if2(%albumartist%,%artist%),)
,$if($eq(%releasetype%,interview),Spoken Word/$if2(%albumartist%,%artist%),)
,$if($eq(%releasetype%,album; soundtrack),Soundtracks/,)
,$if($and($or($eq(%releasetype%,album; compilation),$or($eq(%releasetype%,album),$eq(%releasetype%,compilation))),$eq(%albumartist%,Various Artists)),Compilations/,)
,$if($in(%album%,Promo Only),Promo Only/,)
,$if($and($lt($matchedtracks(),%totaltracks%),$lt($matchedtracks(),60)),Incomplete Releases/$if2(%albumartist%,%artist%),$if2(Artists/$if2(%albumartist%,%artist%)))
)
/
$noop(<!-- Determine album Folder Name -->)
$noop(<!-- Creates next hiearchy folder structure based on release status, date, release type and album name -->)

%releasestatus% [%releasetype%] $if2([$left(%originaldate%,4)]) - $replace(%album%,:,)
/
$noop(<!-- Determine album sub folder name -->)
$noop(<!-- Creates next hiearchy folder structure based on date, media type, country, track count, and album name -->)

$if2([$left(%date%,4)]) $if2([$replace(%media%,",)]) [%releasecountry%] [$matchedtracks() trks] [$if($eq($left(%_bitrate%,5),$right(%_bitrate%,5)),CBR $left(%_bitrate%,3),VBR)]
/
$noop(<!-- Determine file name -->)
$noop(<!-- Creates filename string based on disc#, track#, and song title, appends artist if a compilation -->)

$if($gt(%totaldiscs%,1),$num(%discnumber%,2)-,)$num(%tracknumber%,2) - %title% $if($eq(%albumartist%,Various Artists), \(%artist%\),)

$noop(<!-- Perform character replacements -->)
,>,\))
,<,\()
,|,)
,",)
,:, -)
,?,)
,.,)
, ⁄ ,-)