Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: NG Playlist - Scripting Help (Read 1606 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

NG Playlist - Scripting Help

Hello.  I need help with my playlist view grouping script.

Right now it is:

Code: [Select]
///////// Custom NG Group format script /////////
///////// By /mnt /////////

///////// Config /////////

// Group with Album Artist
$puts(g_artist,1)

// Group with year
$puts(g_year,1)

// NG Group rgb
$puts(rgb_group,$rgb(42,85,170))
$puts(rgb_contrast,$rgb(255,255,255))

///////// End of config /////////

// NG Group format
///////// Modified to put year after album title ///////
$get(rgb_group)
$replace(
$if($or(%album%,%album artist%),
$if($strcmp($get(g_artist),1),$if2(%album artist%,Unknown Artist)' - ')
$if2(%album%,Untitled Album),
$if2(%url%,$directory(%path%,1))),' - [',' - [',' - (',' - (',
' (',$blend($get(rgb_group),$get(rgb_contrast),1,3)' (',')',')'$get(rgb_group),
' [',$blend($get(rgb_group),$get(rgb_contrast),1,3)' [',']',']'$get(rgb_group))
$if($and(%date%,$strcmp($get(g_year),1)),' ('$year(%date%)')')

I would like to modify the last line to compare the DATE field with ORIGINAL RELEASE DATE field and if they are not equal then display

'('%original release date%') ['%date%' release]'

I am not sure the best way to go about this.  Any help would be appreciated!!

 

NG Playlist - Scripting Help

Reply #1
Nevermind I figured it out.  Please delete or close this thread.  Thanks.