Что могло измениться? Почему код не работает?
Playlist View -> Column -> Artist, Album, etc. -> Display
- Код: Выделить всё
// format the colors...
$puts(color1,$replace(%_txt_color1%,$char(6),$char(3)))
$puts(color2,$replace(%_txt_color2%,$char(6),$char(3)))
// if its a single, all formatting is overridden
$if(%_is_single%,
// this is a single, format it
$char(9)$if(%artist%,$transition(%artist%,$get(color1),$get(color2)))
,
// now continue with normal formatting
// check to see if it has all necessary tags
$if($and($meta_test(artist,title,album),$not($strcmp(%track%,$char()))),
// all tags present...
$select($min(5,%tracknumber%),
$transition($ifequal($get_global(va),0,%artist%,Varios Artist),$get(color2),$get(color1))' ◈ '$transition(%album%,$get(color1),$get(color2)),
$if2(%genre%,%_txt_dsbl%Unknown Genre)' ◈ '$if2(%date%,%_txt_dsbl%No Date),
//RG: $if(%__replaygain_album_gain%,'(A) //'%__replaygain_album_gain%,$if(%__replaygain_track_gain%,'(T) '%__replaygain_track_gain%,No Replaygain!)),
%__codec%$char(9)%__bitrate%kbps,
)
,
// not all tags were found, format barebones
$if(%artist%,$transition(%artist%,$get(color1),$get(color2)),$rgb(128,146,151)%_filename_ext%)$char(9)
$if(%album%,$transition(%album%,$get(color2),$get(color1)))
// Finished
))
Playlist View -> Globals -> Variables
- Код: Выделить всё
// change to identify whether or not the playlist is in single mode
$puts(singleID,'(s)')
// Uncomment this next line if you want all tracks to be in single mode
//$puts(is_single,1)
//establish color vars
// make these two the same number for solid color text
$puts(text_color1,$rgb(205,255,255))
$puts(text_color2,$rgb(196,217,219))
$puts(text_color2,$rgb(194,197,196))
// Track color
//$puts(track_color,$rgb(183,192,188))
$puts(track_color,$rgb(83,192,188))
// If your background color is closer to white, make this color black $rgb(0,0,0)
// else make this color white $rgb(255,255,255)
$puts(background_color_opposite,$rgb(255,255,255))
// When an album is detected, this the background color of the first track,
$puts(firsttrackback,$rgb(60,60,60))
//Color of last track
$puts(background_color1,$rgb(81,81,81))
//Background color
$puts(background_color2,$rgb(90,90,90))
// END USER EDITING SECTION //
//////////////////////////////
//set various artist marker
$if($stricmp($meta(va),'1'),$set_global(va,1))
$if($stricmp($meta(various),'1'),$set_global(va,1))
$if($stricmp($meta(various artist),'1'),$set_global(va,1))
$if($stricmp($meta(album artist),'va'),$set_global(va,1))
$if($stricmp($meta(album artist),'various'),$set_global(va,1))
$if($stricmp($meta(album artist),'various artists'),$set_global(va,1))
$if($stricmp($left(%directoryname%,3),'va-'),$set_global(va,1))
$if($stricmp($left(%directoryname%,3),'va '),$set_global(va,1))
$if($stricmp($left(%directoryname%,3),'va_'),$set_global(va,1))
$set_global(va,0)
// check to see if it is a single
$if($not($get(is_single)),$puts(is_single,
$if($or(%single%,$strstr(%_path%,'Singles')),1)))
//establish display vars
$puts(track,[$num($trim($tracknumber()),2)])
$puts(track,$if($strcmp($get(track),'00'),$char(),$get(track)))
track=$get(track)
$puts(text_color1,$replace($get(text_color1)|$get(text_color1),$char(3),$char()))
$puts(text_color2,$replace($get(text_color2)|$get(text_color2),$char(3),$char()))
//$puts(text_disabled,$replace($get(text_disabled)|$get(text_disabled),$char(3),$char()))
$puts(track_color,$replace($get(track_color)|$blend($get(track_color),$get(background_color_opposite),1,2),$char(3),$char()))
$puts(bg_color1,$replace($get(background_color1)|$blend($get(background_color1),$get(background_color_opposite),1,3),$char(3),$char()))
$puts(bg_color2,$replace($get(background_color2)|$blend($get(background_color2),$get(background_color_opposite),1,3),$char(3),$char()))
//$puts(firsttrackback,$replace($get(firsttrackback)|$blend($get(firsttrackback),$get(background_color_opposite),1,3),$char(3),$char()))
// pick the right background color to use
$if($not($strcmp($get(is_single),$char())),
// its a single
$puts(bg_color,$replace($get(background_color2)|$blend($get(background_color2),$get(background_color_opposite),1,3),$char(3),$char())),
// its not, do some more testing.
$if($and($meta_test(artist,title,album),$not($strcmp($get(track),$char()))),
// this is definately part of an album
// make the background a 6 color gradient (just trust me on this one).
$select($min(%tracknumber%,6),
$puts(bg_color,$replace($get(firsttrackback)|$blend($get(firsttrackback),$get(background_color_opposite),1,3),$char(3),$char())),
$puts(bg_color,$replace($blend($get(firsttrackback),$get(background_color1),1,5)|$blend($blend($get(firsttrackback),$get(background_color1),1,5),$get(background_color_opposite),1,3),$char(3),$char())),
$puts(bg_color,$replace($blend($get(firsttrackback),$get(background_color1),2,5)|$blend($blend($get(firsttrackback),$get(background_color1),2,5),$get(background_color_opposite),1,3),$char(3),$char())),
$puts(bg_color,$replace($blend($get(firsttrackback),$get(background_color1),3,5)|$blend($blend($get(firsttrackback),$get(background_color1),3,5),$get(background_color_opposite),1,3),$char(3),$char())),
$puts(bg_color,$replace($blend($get(firsttrackback),$get(background_color1),4,5)|$blend($blend($get(firsttrackback),$get(background_color1),4,5),$get(background_color_opposite),1,3),$char(3),$char())),
$puts(bg_color,$replace($get(background_color1)|$blend($get(background_color1),$get(background_color_opposite),1,3),$char(3),$char()))
),// end select
// its not
$puts(bg_color,$replace($get(background_color2)|$blend($get(background_color2),$get(background_color_opposite),1,3),$char(3),$char()))
)
)
$puts(text_disabled,$blend($get(bg_color),$get(text_color1),4,10))
txt_color1=$get(text_color1)
txt_color2=$get(text_color2)
txt_dsbl=$get(text_disabled)
trk_color=$get(track_color)
bg_color=$get(bg_color)
bg_color1=$get(bg_color1)
bg_color2=$get(bg_color2)
is_single=$get(is_single)
singleID=$get(singleID)
//************************
//$set_global(av,0)
// 0 = Vista, 1 = Blue & White v1, 2 = Blue & White v2
$puts(color_scheme,0)
//Vista
$ifequal($get(color_scheme),0,
//b1=$rgb(129,185,21)
b1=$rgb(115,115,115)
b2=$rgb(83,83,83)
t1=$rgb(240,240,240,255,255,255)
t2=$rgb(192,192,192,192,192,192)
t3=$rgb(128,128,128,128,128,128)
bg1=$rgb(46,48,63)
bg2=$rgb(59,61,76)
//bgp=$rgb(72,117,23)
bgp=$rgb(20,20,20)
bgs=$rgb(43,85,21),
//Blue & White v1
$ifequal($get(color_scheme),1,
b1=$rgb(151,185,215)
b2=$rgb(237,242,249)
t1=$rgb(0,0,0,0,0,0)
t2=$rgb(128,128,128,128,128,128)
t3=$rgb(192,192,192,128,128,128)
bg1=$rgb(255,255,255)
bg2=$rgb(249,253,255)
bgp=$rgb(220,220,220)
bgs=$rgb(230,234,238),
//Blue & White v2
$ifequal($get(color_scheme),2,
b1=$rgb(151,185,215)
b2=$rgb(207,207,207)
t1=$rgb(0,0,0,0,0,0)
t2=$rgb(93,93,93,93,93,93)
t3=$rgb(194,194,194,93,93,93)
bg1=$rgb(239,239,239)
bg2=$rgb(222,227,231)
bgp=$rgb(200,200,200)
bgs=$rgb(210,214,218),
)))
//set various artists marker
$if($stricmp($meta(va),'1'),$set_global(va,1))
$if($stricmp($meta(various),'1'),$set_global(va,1))
$if($stricmp($meta(various artists),'1'),$set_global(va,1))
$if($stricmp($meta(album artist),'va'),$set_global(va,1))
$if($stricmp($meta(album artist),'various'),$set_global(va,1))
$if($stricmp($meta(album artist),'various artists'),$set_global(va,1))
$if($stricmp($left(%directoryname%,3),'va-'),$set_global(va,1))
$if($stricmp($left(%directoryname%,3),'va '),$set_global(va,1))
$if($stricmp($left(%directoryname%,3),'va_'),$set_global(va,1))
$if($meta(album artist),$set_global(va,1))
$set_global(va,0)
//set album view marker
$if(%tracknumber%,
$puts(album,$trim($replace($lower(%album%),'the ',' ','a ',' ',':',' ')))
$puts(first_word,$substr($get(album),1,$if3($sub($strstr($get(album),' '),1),$len($get(album)))))
$ifgreater($strstr($directory($lower(%path%)),$get(first_word)),0,$set_global(av,1),)
$ifgreater($strstr($directory($lower(%path%),2),$get(first_word)),0,$set_global(av,1),)
,$set_global(av,0))