Search found 16 matches

by NeonLightning
11 Apr 2016, 16:02
Forum: Help and Support
Topic: genre not being pulled properly.
Replies: 4
Views: 3175

Re: genre not being pulled properly.

thanks that worked.(although the only groovy def file seems to do next to nothing.)
by NeonLightning
09 Apr 2016, 17:27
Forum: Help and Support
Topic: genre not being pulled properly.
Replies: 4
Views: 3175

genre not being pulled properly.

until sometime this week. {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 ...
by NeonLightning
16 Sep 2015, 14:20
Forum: Scripting and Automation
Topic: looking for help updating script
Replies: 0
Views: 1653

looking for help updating script

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(/[! ...
by NeonLightning
23 May 2014, 21:40
Forum: Scripting and Automation
Topic: issues sorting genres
Replies: 3
Views: 3247

Re: issues sorting genres

for now this is what i've got it setup as y:\TV\{csv('y:/TV/names.csv').get(n) ?: c{info.certification} ?: "No Known Rating"}\{c{genres.take(3).join(' ').match(/Comedy|Documentary|Drama|Children|Reality|Science-Fiction|Adventure|Action|Drama/)} ?: "Unknown"/{genres}}\{n.replaceAll ...
by NeonLightning
23 May 2014, 17:50
Forum: Scripting and Automation
Topic: issues sorting genres
Replies: 3
Views: 3247

issues sorting genres

y:\TV\{csv('y:/TV/names.csv').get(n) ?: c{info.certification} ?: "No Known Rating"}\{n.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().replacePart(', Part $1')}\Season {s.pad(2)}\E{e.pad(2)} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().replacePart(', Part $1')} ou ...
by NeonLightning
26 Jun 2013, 06:22
Forum: Help and Support
Topic: Having troubles with format scripting.
Replies: 15
Views: 8262

Re: Having troubles with format scripting.

F:\TV\{csv('F:/TV/names.csv').get(n) ?: c{info.certification} ?: "No Known Rating"}\{n.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().replacePart(', Part $1')}\Season {s.pad(2)}\E{e.pad(2)} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().replacePart(', Part $1')} th ...
by NeonLightning
26 Jun 2013, 05:44
Forum: Help and Support
Topic: Having troubles with format scripting.
Replies: 15
Views: 8262

Re: Having troubles with format scripting.

With r1649 I added some convenience functions for these kinda use-cases: {csv('D:/pg.csv').get(n) ?: info.certification ?: 'No Rating'} Didn't make it into the v3.61 release though. just tried it and it seems to pull them but its not naming them unless they have a rating. its not handling no rating ...
by NeonLightning
25 Jun 2013, 04:06
Forum: Help and Support
Topic: Having troubles with format scripting.
Replies: 15
Views: 8262

Re: Having troubles with format scripting.

oh ok n is getting pulled as a label basically and the first part pulls whatever n is labelling and the rest is just else ifs
by NeonLightning
25 Jun 2013, 03:04
Forum: Help and Support
Topic: Having troubles with format scripting.
Replies: 15
Views: 8262

Re: Having troubles with format scripting.

really glad you did so but i'm not quite following how its used.
by NeonLightning
24 Jun 2013, 19:29
Forum: Help and Support
Topic: Having troubles with format scripting.
Replies: 15
Views: 8262

Re: Having troubles with format scripting.

grr..... closed it and reopened it now i'm getting script run errors again...
by NeonLightning
24 Jun 2013, 17:58
Forum: Help and Support
Topic: Having troubles with format scripting.
Replies: 15
Views: 8262

Re: Having troubles with format scripting.

GOT IT!
using csv. sadly don't know how to use the append command or i'd have it write any new ones to the csv.

Code: Select all

{def a; new File('F:/TV/names.csv').splitEachLine(';'){ if (n == it[0]) a = it[1]}; a ?: {c{info.certification} ?: "No Known Rating"}}
by NeonLightning
24 Jun 2013, 17:35
Forum: Help and Support
Topic: Having troubles with format scripting.
Replies: 15
Views: 8262

Re: Having troubles with format scripting.

issue i see is inability to have two shows with same certification be parsed as two others.. eg both "D-Day As It Happens" and "Avatar The Last Airbender" are normally TV-7 but i want Avatar to goto TV-G and D-Day to goto TV-PG. also from what i can tell {(n =~ 'Firefly' ? info.certification.match ...
by NeonLightning
24 Jun 2013, 16:54
Forum: Help and Support
Topic: Having troubles with format scripting.
Replies: 15
Views: 8262

Re: Having troubles with format scripting.

not sure where to put that null.match but sofar as i said its not even parsing the american pickers one as anything other than what info.certification shows. i tried removing the last null and adding the : to after the ? but that just seems to make any pg as g and any 14 as g
by NeonLightning
24 Jun 2013, 16:32
Forum: Help and Support
Topic: Having troubles with format scripting.
Replies: 15
Views: 8262

Re: Having troubles with format scripting.

F:\TV\{if ({n}=='Amercian/ Pickers') {"TV-G"}else if ({info.certification}==""){"No Known Rating"}else {info.certification}}\{n.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().replacePart(', Part $1')}\Season {s.pad(2)}\E{e.pad(2)} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘ ...
by NeonLightning
24 Jun 2013, 15:46
Forum: Help and Support
Topic: Having troubles with format scripting.
Replies: 15
Views: 8262

Re: Having troubles with format scripting.

F:\TV\{c{info.certification} ?({c(n=="Amercian Pickers") ?: info.certification.match('TV-PG':'TV-G')}): "No Known Rating"}\{n.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().replacePart(', Part $1')}\Season {s.pad(2)}\E{e.pad(2)} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘ ...
by NeonLightning
24 Jun 2013, 15:00
Forum: Help and Support
Topic: Having troubles with format scripting.
Replies: 15
Views: 8262

Having troubles with format scripting.

i know i can run groovy stuff through the episode format and this F:\TV\{c{info.certification} ?: "No Known Rating"}\{n.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").lowerTrail().replacePart(', Edition $1')}\Season {s.pad(2)}\E{e.pad(2)} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘ ...