User:Mineo: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
No edit summary
mNo edit summary
Line 23: Line 23:


<pre>
<pre>
$unset(genre)
$unset(_rating)
$unset(bpm)
$unset(mood)
$unset(isrc)
$unset(copyright)
$unset(media)
$unset(barcode)
$unset(encodedby)
$unset(releasestatus)
$unset(asin)
$unset(script)
$unset(language)
$unset(musicip_puid)
$unset(musicip_fingerprint)
$unset(composersort)
$unset(originaldate)
$if($eq(%label%,8bitpeoples),
$if($eq(%label%,8bitpeoples),
$set(_labelandcatno,yes)
$set(_labelandcatno,yes)
Line 54: Line 37:
,
,
)
)

$unset(label)
$keep(artist,album,title,albumartist,date,discsubtitle,,tracknumber,totaltracks,discnumber,totaldiscs,releasetype,composer)
$unset(catalognumber)

</pre>
</pre>


Line 66: Line 50:
Disc %_paddeddiscnumber%/,
Disc %_paddeddiscnumber%/,
)
)
%_paddedtracknumber% - %title%
$if(%_paddedtracknumber%,%_paddedtracknumber% - ,)%title%
)
)


Line 72: Line 56:
$set(_year,$left(%date%,4)),
$set(_year,$left(%date%,4)),
)
)

$if($in(%_filename%,OC ReMix),
OverClocked ReMix/misc/%artist% - %title%
$stop(1)
,)


$if($eq(%albumartist%,OverClocked ReMix),
$if($eq(%albumartist%,OverClocked ReMix),
Line 77: Line 66:
)
)


$if($in(%_dirname%,_misc),
$if($in(%_dirname%,misc),
misc/tagged/%artist% - %title%
misc/tagged/%artist% - %title%
$stop()
$stop(1)
,)
,)


Line 99: Line 88:
$noop(begin labelandcatno - for some labels it makes sense to give them their own folder - label/catno - album \(year\))
$noop(begin labelandcatno - for some labels it makes sense to give them their own folder - label/catno - album \(year\))
$if(%_labelandcatno%,
$if(%_labelandcatno%,
%_label%/%_catno% - %album%$if(%_year%, \(%_year%\))/%_theend%
%_label%/$if(%_catno%,%_catno% - )%album%$if(%_year%, \(%_year%\))/%_theend%
$stop(),
$stop(1),
)
)
$noop(end labelandcatno)
$noop(end labelandcatno)
Line 113: Line 102:


/%_theend%
/%_theend%
$stop(),
$stop(1),
)
)
$noop(end soundtrack),
$noop(end soundtrack)
$noop(begin normal - this is neither a soundtrack, nor an album from one of the special labels)
$noop(begin normal - this is neither a soundtrack, nor an album from one of the special labels)
$if2(
$if2(

Revision as of 23:06, 30 January 2015

My MBz profile

Websites with catalogues of classical music

Bielekat

Klassikakzente

aria2c download list for MB dumps

ftp://mirrors.dotsrc.org/MusicBrainz/data/fullexport/LATEST/mbdump.tar.bz2 ftp://ftp.musicbrainz.org/pub/musicbrainz/data/fullexport/LATEST/mbdump.tar.bz2
ftp://mirrors.dotsrc.org/MusicBrainz/data/fullexport/LATEST/mbdump-editor.tar.bz2  ftp://mirrors.dotsrc.org/MusicBrainz/data/fullexport/LATEST/mbdump-editor.tar.bz2
ftp://ftp.musicbrainz.org/pub/musicbrainz/data/fullexport/LATEST/mbdump-derived.tar.bz2    ftp://ftp.musicbrainz.org/pub/musicbrainz/data/fullexport/LATEST/mbdump-derived.tar.bz2

Those are tabs (\t) separating the URLs, not spaces! Replace latest with the real folder name. Then save all the URLs to a file and run aria2c like so:

aria2c -j 6 -i <filename>

to download the files to the current directory

Picard scripting

$if($eq(%label%,8bitpeoples),
	$set(_labelandcatno,yes)
	$set(_label,%label%)
	$set(_catno,%catalognumber%)
	$add_to_collection(56cd604b-c02a-4f4a-9b75-400692624831)
    ,
)
$if($eq(%label%,OverClocked ReMix),
	$set(_labelandcatno,yes)
	$set(_label,%label%)
	$set(_catno,%catalognumber%)
	$add_to_collection(450a79e3-73ba-44a0-9d99-64651e7b65ff)
    ,
)

$keep(artist,album,title,albumartist,date,discsubtitle,,tracknumber,totaltracks,discnumber,totaldiscs,releasetype,composer)

Picard file naming

$set(_theend,
	$if(
		$gt(%totaldiscs%, 1),
		Disc %_paddeddiscnumber%/,
	)
	$if(%_paddedtracknumber%,%_paddedtracknumber% - ,)%title%
)

$if(%date%,
	$set(_year,$left(%date%,4)),
)

$if($in(%_filename%,OC ReMix),
	OverClocked ReMix/misc/%artist% - %title%
	$stop(1)
,)

$if($eq(%albumartist%,OverClocked ReMix),
	$set(albumartist,Various Artists),
)

$if($in(%_dirname%,misc),
	misc/tagged/%artist% - %title%
	$stop(1)
,)

$if(
	$or($in(%_dirname%,Soundtracks),$inmulti(%releasetype%,soundtrack)),
	$set(_soundtrackprefix,Soundtracks),
)

$if(
	$in(%_dirname%,Soundtracks - Score),
	$set(_soundtrackprefix,Soundtracks - Score),
)

$if(
	$in(%_dirname%,Anime),
	$set(_soundtrackprefix,Soundtracks - Anime),
)

$noop(begin labelandcatno - for some labels it makes sense to give them their own folder - label/catno - album \(year\))
$if(%_labelandcatno%,
	%_label%/$if(%_catno%,%_catno% - )%album%$if(%_year%, \(%_year%\))/%_theend%
	$stop(1),
)
$noop(end labelandcatno)
$noop(begin soundtrack)
$if(%_soundtrackprefix%,
	%_soundtrackprefix%/
	%album% $if(%_releasecomment%,\(%_releasecomment%\) ,)- $if2(%albumartist%,%albumartist%)
		$if(
			%date%,
			 \($left(%date%,4)\),
			)

		/%_theend%
	$stop(1),
)
$noop(end soundtrack)
$noop(begin normal - this is neither a soundtrack, nor an album from one of the special labels)
$if2(
	%albumartist%,
	%artist%
)/
$if(%_year%,%_year% - )
%album%/%_theend%
$noop(end normal)