Difference between revisions of "User:Mineo"

From MusicBrainz Wiki
m (Picard scripting)
m (Picard file naming)
Line 47: Line 47:
  
 
<pre>
 
<pre>
 +
$if(%date%,
 +
$set(_year,$left(%date%,4)),
 +
)
 +
 
$if($eq(%albumartist%,OverClocked ReMix),
 
$if($eq(%albumartist%,OverClocked ReMix),
 
$set(albumartist,Various Artists),
 
$set(albumartist,Various Artists),
 
)
 
)
 +
 
$if($in(%_dirname%,_misc),
 
$if($in(%_dirname%,_misc),
 
misc/tagged/%artist% - %title%
 
misc/tagged/%artist% - %title%
 
$stop()
 
$stop()
 
,)
 
,)
 +
 
$if(
 
$if(
 
$or($in(%_dirname%,Soundtracks),$inmulti(%releasetype%,soundtrack)),
 
$or($in(%_dirname%,Soundtracks),$inmulti(%releasetype%,soundtrack)),
 
$set(_soundtrackprefix,Soundtracks),
 
$set(_soundtrackprefix,Soundtracks),
 
)
 
)
 +
 
$if(
 
$if(
 
$in(%_dirname%,Soundtracks - Score),
 
$in(%_dirname%,Soundtracks - Score),
 
$set(_soundtrackprefix,Soundtracks - Score),
 
$set(_soundtrackprefix,Soundtracks - Score),
 
)
 
)
 +
 
$if(
 
$if(
 
$in(%_dirname%,Anime),
 
$in(%_dirname%,Anime),
 
$set(_soundtrackprefix,Soundtracks - Anime),
 
$set(_soundtrackprefix,Soundtracks - Anime),
 
)
 
)
 +
 
$noop(begin soundtrack)
 
$noop(begin soundtrack)
 
$if(%_soundtrackprefix%,
 
$if(%_soundtrackprefix%,
Line 77: Line 86:
 
/
 
/
 
$noop(end soundtrack),
 
$noop(end soundtrack),
$noop(begin pathextra)
+
$noop(begin labelandcatno - for some labels it makes sense to give them their own folder - label/catno - album \(year\))
$if(%_pathextra%,
+
$if(%_labelandcatno%,
%_pathextra%/,
+
%_label%/%_catno% - %album%$if(%_year%, \(%_year%\))/,
)
+
$noop(end labelandcatno)
$noop(end pathextra)
+
$noop(begin normal - this is neither a soundtrack, nor an album from one of the special labels)
$noop(begin normal)
+
$if2(
$if2(
+
%albumartist%,
%albumartist%,
+
%artist%
%artist%
+
)/
)/
+
$if(%_year%,%_year% - )
$if(
+
%album%/
%date%,
+
$noop(end normal)/
$left(%date%,4) - ,
 
 
)
 
)
%album%/
 
 
)
 
)
$noop(end normal)/
 
 
$if(
 
$if(
 
$gt(%totaldiscs%, 1),
 
$gt(%totaldiscs%, 1),

Revision as of 19:58, 14 August 2013

My MBz profile

Websites with catalogues of classical music

Bielekat

Klassikakzente

Picard scripting

$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),
	$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)
    ,
)
$unset(label)
$unset(catalognumber)

Picard file naming

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

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

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

$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 soundtrack)
$if(%_soundtrackprefix%,
	%_soundtrackprefix%/
	%album% $if(%_releasecomment%,\(%_releasecomment%\) ,)- $if2(%albumartist%,%albumartist%)
	$if(
		%date%,
		 \($left(%date%,4)\),
		)

	/
$noop(end soundtrack),
	$noop(begin labelandcatno - for some labels it makes sense to give them their own folder - label/catno - album \(year\))
	$if(%_labelandcatno%,
		%_label%/%_catno% - %album%$if(%_year%, \(%_year%\))/,
	$noop(end labelandcatno)
		$noop(begin normal - this is neither a soundtrack, nor an album from one of the special labels)
			$if2(
			%albumartist%,
			%artist%
			)/
			$if(%_year%,%_year% - )
			%album%/
		$noop(end normal)/
	)
)
$if(
	$gt(%totaldiscs%, 1),
	Disc %_paddeddiscnumber%/,
)
%_paddedtracknumber% - %title%


Template:lang de-native Template:lang en-fluent