I scrub start time from index in format 20190713142500 but I get error
[ Debug ] Elements , type single applied
[ Debug ] ----------begin--element----------
[ Debug ] 20190713145500
[ Debug ] ----------end----element----------
[ Debug ] Converted to:
01.1.1900 00:00:00
[ Debug ] Converted to:
01.1.1900 00:00:00
[ Debug ] skipped : show that happened before 'today' @ 01/01/1900 00:00
[ Debug ] Debugging information SiteIni
Anybody knows how to read this format in proper way
add pattern="yyyyMMddHHmmss" argument,see the manual for more details.
Did not work that way but I figure out, This is what I did and it works:
index_start.scrub {single(debug)|"start":"|| +0200|}
index_start.modify {set(debug, pattern="yyyyMMddHHmmss")|'index_start'}
index_stop.scrub {single(debug)|","stop":"|| +0200|}
index_stop.modify {set(debug, pattern="yyyyMMddHHmmss")|'index_stop'}
But I have another problem now with url_index, in the url contain start and stop date in the same format start/20190720235959/stop/20190730235959
How do I modify that to be start now and stop + 10 days
index_start.scrub {single(debug pattern="yyyyMMddHHmmss")|"start":"|| +0200|}
shud do the same thing but only uses a single line.
for this..
start/20190720235959/stop/20190730235959
on site {xx} line set maxdays=10.1
urldate.format {datestring|yyyyMMdd}
start/|urldate|235959/stop/##end_date##235959
scope.range{(urlindex)|end}
global_temp_1.modify {calculate(format=F0)|'config_timespan_days'}
global_temp_1.modify {calculate(format=date,yyyyMMdd)|'urldate' 'global_temp_1':0:0 +}
url_index.modify {replace|##end_date##|'global_temp_1'}
end_scope
or as u wanted a fixed 10 days..
scope.range{(urlindex)|end}
global_temp_1.modify {calculate(format=date,yyyyMMdd)|'urldate' 10:0:0 +}
url_index.modify {replace|##end_date##|'global_temp_1'}
end_scope
I prefer the first way because say u only wanted 7 days epg.
this was gets the timespan value from your wg config.xml and gets the number of days requested.
why grab 10 days of epg to keep only 7(in this example).
Thanks a lot for your help
I finish ini file but any idea how to share it in the member area so other people can have it?