You are here

quick url_index quesiotn

7 posts / 0 new
Last post
johoja
Offline
Joined: 8 years
Last seen: 8 years
quick url_index quesiotn

Got a quick quesiton - i'm trying to figure out the best way to set the following in a URL:

fromdatetime=|urldate|&todatetime=|urldate|

Both are in the format of 'yyyyMMddHHMM'

But if i set them both to |urldate| the schedule is quite small ( just one program per day) -- is there a way to do something like yyyyMMdd0000 and yyMMdd1159 ?

 

 

johoja
Offline
Joined: 8 years
Last seen: 8 years

Thanks - i got that to work - stuck on a different problem now though :

If i take this : 

index_start.scrub {regex(debug, patern=yyyyMMddHHMM)||\"start\":"(\d+)||}

For some reason it does not recognize the datetime correctly , any idea ?

 

[  Debug ] Found 1 match(es):
[  Debug ] 201602122352
[  Debug ] Element Value(s) :
[  Debug ] ----------begin--element----------
201602122352
[  Debug ] ----------end----element----------
[  Debug ] Converted to:
01-01-0001 05:36:00

johoja
Offline
Joined: 8 years
Last seen: 8 years

Yes tried that as well - this however worked. 

index_start.scrub {regex(debug, patern=yyyyMMddHHmm)||\"start\":"(\d+)||}
index_start.modify {calculate(format=date,yyyy/MM/d H:mm)

Not sure why i need the modify if i have a patern= -- but this seems to work for now.

johoja
Offline
Joined: 8 years
Last seen: 8 years

Actually I spoke to soon - the start/stop times are not correct - any idea what else could be wrong ? 

 

This is the json - form the showsplit : 

 

"programmeid":"30000000549759726","title":"Agent Vinod","start":"201602172152","stop":"201602180030","desc":"Agent Vinod is on a secret mission to find out the reason behind the death of Rajan, his colleague. Terror escalates when he unfolds an even bigger conspiracy.","date":"20160217","episode-num":"","subtitle":"","scheduleid":"10000068470331140","genre":"Film","subgenre":"Action","languagename":"Hindi","dubbedlanguageid":"10000000000040000","timestring":"9:52 PM, 17 February","seriesnumber":"","duration":"158","credits": {"actor":["Saif Ali Khan","Kareena Kapoor Khan","Adil Hussain","Ravi Kishan","Ram Kapoor","Prem Chopra"],"director":["Sriram Raghavan"]

This is what I have so far - the title is fine - but the stop/stsart time are not getting procssed : 

 

index_showsplit.scrub {regex||(\"programmeid\".+?\"director\".+?])||}
index_start.scrub {regex(debug, patern=yyyyMMddHHmm)||\"start\":"(\d+)||}
index_stop.scrub {regex(debug, patern=yyyyMMddHHmm)||\"stop\":"(\d+)||}

 

 

johoja
Offline
Joined: 8 years
Last seen: 8 years

Thanks - that was my bad - but still does not work for some reason : 

 

[  Debug ] scrub strings:
[  Debug ]      type & arguments : regex(debug, pattern=yyyyMMddHHmm)
[  Debug ]      regex_expression : \"stop\":"(\d+)
[  Debug ] Found 1 match(es):
[  Debug ] 201602120012
[  Debug ] Element Value(s) :
[  Debug ] ----------begin--element----------
201602120012
[  Debug ] ----------end----element----------
[  Warn  ]
Format specifier was invalid.
[  Warn  ] timepattern    doesnot fit to
[  Warn  ] time scrubbed 201602112222
[Critical] Generic syntax exception:
[Critical]    message:
[  Error ] Current culture: en-GB
[  Error ] time parsing error : String was not recognized as a valid DateTime.
[  Error ] starttime time scrubbed : 201602112222
[  Error ] computer date/time format: 12/02/2016 10:06:04
[  Info  ] Existing guide data restored!
[  Debug ]
[  Debug ] 136 shows in 1 channels
[  Debug ] 0 updated shows
[  Debug ] 0 new shows added

johoja
Offline
Joined: 8 years
Last seen: 8 years

that did it ! - you must have the manual memorized.

 

WGMaker
Offline
WGMaker's picture
WG++ Team memberDonator
Joined: 12 years
Last seen: 3 hours
Is the support helpful?
support us

Hi Blackbear,

nice to see that you are such a frequent reader of the manual! But it must be a bit cumbersome to have it open all the time on your desktop! (Takes screen space etc) Although I know a bit here and there about WG++, and have written the manual myself, I need to refer to t a lot for details. Therefor a tip: Print the manual as 'booklet'. My Canon printer supports that printmode. I guess other printers as well. It gives you a nice handy 'half A4' (or 'half Letter') size booklet .


If your printer doesn't support that mode, I offer to send you a printed booklet size manual for free. Just send me a PM

​Also  .. thanks for all the support you give to WG++ users !!

Jan

Attachments: 
Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl