terrestrial, I want to thank you for adding in the %_itemcount% and %_itemindex% commands. They have allowed me to give specific headers to Album-based lists, and a generic header to random lists.
There is, however, one thing I was wanting to see about adding to this amazing plugin. Could we have the option to "regroup" entries upon adding new items to a playlist?
My goal is to be able to give a specific heading to an Album in a list, as well as a generic heading to any random songs in the same list. Currently, if I have a list of random songs it throws them under a "Singles" heading. If I add a whole album to the list, it does not generate a new heading for the album. Instead it keeps the new entries in the same group as the random songs. The same applies if I start with a list of full albums. Each album has a specific heading, when random songs are added it places them under the last album's heading, but it actually changes it to my "singles" heading.
Here is the code that I am using:
Group by:
%_itemindex% %codec%
Item Display:
//Playing Row Colors
$puts(p-fill,$drawrect(130,0,0,0,brushcolor-115-135-170 pencolor-null))
$puts(p-odd,$drawrect(130,0,0,0,brushcolor-null pencolor-40-40-40 width-3))
$puts(p-even,$drawrect(130,0,0,0,brushcolor-null pencolor-0-0-0 width-3))
//Non-playing Row Colors
$puts(n-odd,$drawrect(130,0,0,0,brushcolor-0-0-0 pencolor-40-40-40 width-3))
$puts(n-even,$drawrect(130,0,0,0,brushcolor-40-40-40 pencolor-0-0-0 width-3))
//Selected Row Border Colors
$puts(s-odd,$drawrect(130,0,0,0,brushcolor-null pencolor-115-135-170 width-3))
$puts(s-even,$drawrect(130,0,0,0,brushcolor-null pencolor-115-135-170 width-3))
//Images
$puts(p-image,$imageabs(130,0,images\1bit\item_playing.png,flow))
$puts(n-image,$imageabs(130,0,images\1bit\item.png,flow))
//Playing Fonts
$puts(p-font1,$font(segoe ui,8,bold glow-40-40-40 glowexpand-1 glowblur-1,140-140-140))
$puts(p-font2,$font(segoe ui,8,bold glow-40-40-40 glowexpand-1 glowblur-1,140-140-140))
$puts(p-font3,$font(segoe ui,8,bold glow-40-40-40 glowexpand-1 glowblur-1,140-140-140))
$puts(p-font4,$font(segoe ui,8,bold glow-40-40-40 glowexpand-1 glowblur-1,140-140-140))
$puts(p-font5,$font(Kroeger 05_55,8,bold glow-40-40-40 glowexpand-1 glowblur-1,140-140-140))
$puts(p-font6,$font(Kroeger 05_55,8,bold glow-40-40-40 glowexpand-1 glowblur-1,140-140-140))
//Non-Playing Fonts
$puts(n-font1,$font(segoe ui,8,bold,180-180-180))
$puts(n-font2,$font(segoe ui,8,bold,115-135-170))
$puts(n-font3,$font(segoe ui,8,bold,150-150-150))
$puts(n-font4,$font(segoe ui,8,bold,180-180-180))
$puts(n-font5,$font(Kroeger 05_55,8,,120-120-120))
$puts(n-font6,$font(Kroeger 05_55,8,,180-180-180))
///////Layout
//Art & Album
$if($greater(%tracknumber%,5),
$if($greater(9,%tracknumber%),$drawrect(23,0,104,0,brushcolor-250-250-250 pencolor-null)
$padding(28,3)$font(calibri,8,bold,100-100-100)
$if($strcmp($num(%tracknumber%,2),06),Artist: $font(calibri,8,bold,140-140-140)%artist%)
$if($strcmp($num(%tracknumber%,2),07),Album: $font(calibri,8,bold,140-140-140)%album%)
$if($strcmp($num(%tracknumber%,2),08),Year: $font(calibri,8,bold,140-140-140)$if2(%date%,Unknown))
$padding(-28,-3)
))
$imageabs2(128,128,0,0,,,4,$add(32,$mul(-32,%tracknumber)),images\nocover.png,)
$imageabs2(128,128,0,0,,,4,$add(32,$mul(-32,%tracknumber%)),$replace(%path%,%filename_ext%,)folder.jpg,)
$imageabs(4,$add(32,$mul(-32,%tracknumber)),'images\artoverlay-1.png',)
$padding(0,0)
$drawrect(127,0,1,0,brushcolor-161-170-179 pencolor-null)
$drawrect(128,0,2,0,brushcolor-222-225-228 pencolor-null)
$if(%_isplaying%,$drawrect(128,0,0,0,brushcolor-0-0-0 pencolor-0-0-0)
$imageabs(128,0,'images\bg1.png',)
,
$ifequal($mod(%_playlist_number%,2),0,
$drawrect(130,0,0,0,brushcolor-250-250-250 pencolor-240-240-240)
,
$drawrect(130,0,0,0,brushcolor-255-255-255 pencolor-240-240-240)
)
)
//Track Listing
$if(%_isplaying%,
$get(p-fill)$imageabs(130,-25,'images\glass.png',)
$ifequal($mod(%_playlist_number%,2),0,$get(p-odd),$get(p-even))
,
$ifequal($mod(%_playlist_number%,2),0,$get(n-odd),$get(n-even)
))
$if($and(%_selected%,$not(%_isplaying%))
,
$ifequal($mod(%_playlist_number%,2),0,$get(s-odd),$get(s-even)
))
$padding(2,2)
$if(%_isplaying%,$get(p-image),$get(n-image))
$alignabs(132,0,%_width%,21,left,top)
$if(%_isplaying%,$font(calibri,8,bold glow-40-40-40 glowexpand-1 glowblur-1,140-140-140),$font(calibri,8,bold,140-140-140))
↘
$alignabs(144,0,%_width%,21,left,top)
$if(%_isplaying%,$get(p-font1),$get(n-font1))
[Disc %discnumber% ][$if(%track%,$left(%track%,2),1). ]
$if(%_isplaying%,$get(p-font2),$get(n-font2))
$if($meta_test(album artist),%artist%' - ')
$if(%_isplaying%,$get(p-font3),$get(n-font3))
%title%
$align(right,center)
$if(%_isplaying%,$get(p-font4),$get(n-font4))
%length%
$alignabs(144,2,%_width%,21,left,bottom)
$if(%_isplaying%,$get(p-font5),$get(n-font5))
[$if($greater($div(%_filesize%,1024),1024),$left($div(%_filesize%,1024),1),0).$right($left($div(%_filesize%,1024),3),2)MB ][%__bitrate%Kbps]
$align(right,bottom)
$if(%_isplaying%,$get(p-font6),$get(n-font6))
[%play_count% play$if($greater(%play_count%,1),s)]
Group Display:
//Variables
$puts(group0,$if($stricmp(%_itemcount%,$substr(%track%,4,5)),%album%,'Singles'))
$puts(group1,$if($stricmp(%_itemcount%,%totaltracks%),%album%,'Singles'))
$puts(border0,pencolor-null)
$puts(border1,pencolor-40-40-40 width-3)
$puts(fill0,brushcolor-null)
$puts(fill1,brushcolor-100-100-100)
$puts(font1,Frutiger Linotype)
$puts(size1,12)
$puts(fx1,bold glow-25-25-25 glowexpand-2 glowblur-2)
$puts(color1,115-135-170)
$puts(font2,kroeger 05_55)
$puts(size2,8)
$puts(fx2,bold glow-25-25-25 glowexpand-2 glowblur-2)
$puts(color2,115-135-170)
$drawrect(0,0,0,0,$get(fill1)$get(border0))
$imageabs(0,-10,'images\glass.png',)
$imageabs2(32,32,0,0,,,,,images\Jyriks_Foo_Icons_Pngs\png\$replace(%filename_ext%,%filename%.,).png,)
$drawrect(0,0,0,0,$get(fill0)$get(border1))
$padding(36,0)
$padding(0,4)
$align(left,bottom)
$imageabs(0,0,images\1bit\folder.png,flow)
$font($get(font1),$get(size1),$get(fx1),$get(color1))
$if($stricmp(%codec%,FLAC),$get(group0))
$if($stricmp(%codec%,MP3),$get(group1))
$padding(-30,-2)
$align(right,top)
$font($get(font2),$get(size2),$get(fx2),$get(color2))
$if($meta_test(album artist),%album artist%,%album%)
$align(right,bottom)
$font($get(font2),$get(size2),$get(fx2),$get(color2))
[%date% '| '][%genre%]
Edit: It actually seems to occur when adding songs that are of a different codec to a list. Such as adding MP3s to a list containing only FLAC files. I can get it to work in certain circumstances by performing a re-sort, but I would think that having the ability to re-group the tracks in place would work better.