You are here

Config ##start_date##

5 posts / 0 new
Last post
crazy_ku
Offline
Joined: 4 years
Last seen: 3 years
Config ##start_date##

Hello,

I have an url_index contain ##start_date## and ##end_date## element like below:

https://.../getLiveChannelPrograms?channelIds=|channel|&startTime=##start_date##&endTime=##end_date##

The ini config:

*
urldate.format {datestring|yyyy-MM-dd}
*
scope.range{(urlindex)|end}
index_variable_element.modify {set|1.0}
index_variable_element.modify {calculate(format=timespan,days)}
index_temp_1.modify {calculate(format=date,yyyy-MM-dd)|'urldate'}
index_temp_2.modify {calculate(format=date,yyyy-MM-dd)|'urldate' 'index_variable_element' +}
url_index.modify {replace|##start_date##|'index_temp_1'}
url_index.modify {replace|##end_date##|'index_temp_2'}
end_scope

What I want to config is change the value of ##start_date## to the previous day

e.g:
If today is 2020-05-11, so the ##start_date## will automatically be 2020-05-11 and WG++ will grab epg from 11 May onward
Now I want the ##start_date## is 2020-05-10 to let WG++ to grab epg from 10 May

So, how can I modify the above ini config?

mat8861
Offline
WG++ Team memberDonator
Joined: 8 years
Last seen: 8 hours

doesn't work like that, you need to change in config "timespan keeppastdays=" (see documented files) so it keeps the past day one or more in guide.xml

crazy_ku
Offline
Joined: 4 years
Last seen: 3 years

Sorry for my unclear explanation in 1st post, my point is not to keep the old epg data

I used attached starhubgo.com.ini file. This site seems use UTC timezone system, but we are in UTC+07:00
So if using this ini, the first grabbed show will be at "20200511040000 +0000", mean that it will be the show at 11:00 (UTC+07:00) of 2020-05-11 (epg missing the show from 00:00 to 10:59 of 2020-05-11)

But we would like to grab epg start from 00:00 (UTC+07:00) of 2020-05-11, mean that it should start to grab from 17:00 (UTC) of 2020-05-10

I tried to offset in config file but still missing the show from 00:00 to 10:59 (UTC+07:00) of 2020-05-11

Can you please have a look at that file?

Attachments: 
mat8861
Offline
WG++ Team memberDonator
Joined: 8 years
Last seen: 8 hours

File is correct. I think you are confused, probabily because you look the xml file. If shows are in utc once you add to your device time will be corrected (+ 7:00 Hrs). You say you miss shows....may be the first time because if you grab a week and keep grabbing incrementally nothing will be missed. Worst case ( i would not do it) you can change time, if you are really sure that in your device time does not get "corrected" http://www.webgrabplus.com/download/utility/xmltvtimecorrect

crazy_ku
Offline
Joined: 4 years
Last seen: 3 years

I will try to grab for several days as you advised then if any problems, I will let you know
Thank you

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