Hello,
I wanted to adapt all my EPG data with GMT/UTC so instead of adding offset for channels in my config file (and thus making my EPG bigger) it would be better for me to edit SiteINI files. I could edit some of them but some other would get problematic.
For example if I add this line to nos.pt.ini (First show starts at 2016/10/31 00:18 for example):
index_start.modify {calculate(format=time,HH:mm)|01:00 -}
The calculation happens but the date won't change. (The result of the above calculation's result for my example is 2016/10/31 23:18 but the correct calculation is 2016/10/30 23:18)
Here's the debug info:
[ Debug ] Debugging information SiteIni [ Debug ] Element: INDEX_START [ Debug ] Modify [ Debug ] command & arguments : calculate(debug)(format=time,HH:mm) [ Debug ] Expression-1 : 01:00 - [ Debug ] Element value before operation: [ Debug ] 00:18 [ Debug ] Calculate 01:00 - [ Debug ] Result = 23:18 [ Debug ] Element value after operation: [ Debug ] 23:18 [ Debug ] Converted to: 31-10-2016 23:18:00
A very careful and considerate answer! Big thanks!
Hi, i have used this merge-xmltv-utc.ini ,but is it possible to put the code to each site.ini, so in all xml files timezone will be UTC?
With merge-xmltv-utc.ini all url are http://www.merge-xmltv-utc.ini, not original one and i have to run all sites twice.
Just curious if this will work if i grab from different .ini with different timezones? Lets say i grab one from +0100 and another one +0300. Will the script correct both to UTC then?
Yes i just tried it and it didnt work, i was trying with +0100 and +0300 and used WG2MP, i set the timezone to UTC and then run the script and add the +00000 but seems like WG2MP is not adjusting both to UTC.
I know you have a merge-ini-utc but then i will have to run webgrab twice, first grab the data and then merge it.
Isnt there a better an easier solution?
Cheers
Youre right, i think i fucked it up will try again!
Hi,
Could anyone share with me the "merge-xmltv-utc.ini" file? I've searched all over the forum and found nothing.
Thanks in advance
you can use the post process xmltv_time_modify https://github.com/SilentButeo2/webgrabplus-siteinipack/tree/master/post...