Page 1 of 1

genre not being pulled properly.

Posted: 09 Apr 2016, 17:27
by NeonLightning
until sometime this week.

Code: Select all

{c{genres.take(3).join(' ').match(/Horror|Comedy|Documentary|Drama|Children|Reality|Game Show|Science-Fiction|Adventure|Action|Animation|Anime/)} ?: "Unknown"/{genres}}
worked for detecting genre but isn't anymore. (although the unknown part stopped working long ago)
now its just not pulling anything for the genre.



if anyone wants to help me update my script overall that would be great but right now mostly just wanna get genre working again.

Code: Select all

Y:/TOSORT/{c{genres.take(3).join(' ').match(/Horror|Comedy|Documentary|Drama|Children|Reality|Game Show|Science-Fiction|Adventure|Action|Animation|Anime/)} ?: "Unknown"/{genres}}\{n.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().replacePart(', $1')}\Season {s.pad(2)}\{n.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().replacePart(', $1')} - {S00E00} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().replacePart(', Part $1')}
also does anyone know of a groovy language template for notepad++?

Re: genre not being pulled properly.

Posted: 09 Apr 2016, 22:14
by rednoah
Internal things change from time to time, and break compatibility with oddly written formats.

This should work:

Code: Select all

any{genres.take(3).join(' ').match(/Horror|Comedy/)}{'Unknown/'+genres}
@see viewtopic.php?f=5&t=1895

Re: genre not being pulled properly.

Posted: 10 Apr 2016, 15:01
by kim
try:
http://docs.notepad-plus-plus.org/index ... uage_Files

also the "c" is now "call"

Code: Select all

{call{genres.take(3).join(' ').match(/Horror|Comedy|Documentary|Drama|Children|Reality|Game Show|Science-Fiction|Adventure|Action|Animation|Anime/)} ?: "Unknown"/{genres}}

Re: genre not being pulled properly.

Posted: 10 Apr 2016, 16:26
by rednoah
Yes, but call is something that may be subject to change or disappear, while any{}{}... will always be compatible. ;)

Re: genre not being pulled properly.

Posted: 11 Apr 2016, 16:02
by NeonLightning
thanks that worked.(although the only groovy def file seems to do next to nothing.)