genre not being pulled properly.

Any questions? Need some help?
Post Reply
NeonLightning
Posts: 16
Joined: 24 Jun 2013, 02:17

genre not being pulled properly.

Post 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++?
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: genre not being pulled properly.

Post 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
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: genre not being pulled properly.

Post 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}}
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: genre not being pulled properly.

Post by rednoah »

Yes, but call is something that may be subject to change or disappear, while any{}{}... will always be compatible. ;)
:idea: Please read the FAQ and How to Request Help.
NeonLightning
Posts: 16
Joined: 24 Jun 2013, 02:17

Re: genre not being pulled properly.

Post by NeonLightning »

thanks that worked.(although the only groovy def file seems to do next to nothing.)
Post Reply