Search found 16 matches
- 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.)
- 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 ...
- 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(/[! ...
- 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 ...
- 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 ...
- 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 ...
- 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 ...
- 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
- 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.
- 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...
- 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.
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"}}
- 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 ...
- 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
- 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(/[`´‘ ...
- 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(/[`´‘ ...
- 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(/[`´‘ ...