In nowtv.ini, timezone is set to Hong Kong which is UTC+8: No detailed description is collected
site {url=nowtv.now.com|timezone=Asia/Hong_Kong|maxdays=7|cultureinfo=en-US|charset=utf-8|titlematchfactor=90}
scope.range{(indexshowdetails)|end}
index_start.scrub {single|"startTime":"||","|","}
index_stop.scrub {single|"endTime":"||","|","}
In guide.xml, programme is +0800
but When collecting detailed descriptions,Time is not right, I want to use timezone = Asia / Hong_Kong instead of UTC,The following rules should be modified as follows?
scope.range{(indexshowdetails)|end}
index_start.scrub {single|"startTime":"||","|","}
index_stop.scrub {single|"endTime":"||","|","}
index_title.scrub {single|"name":"||"|"}
*
index_subtitle.modify {substring(type=regex)|'index_title' "S\d+E\d+\s-(.*)"}
index_subtitle.modify {substring('index_subtitle' "" type=regex)|'index_title' "E\d+\s-(.*)"}
index_title.modify {remove('index_subtitle' not "")|-'index_subtitle'}
*
index_temp_9.modify {substring(type=regex)|'index_title' ".*(S\d+E\d+)"}
index_temp_9.modify {substring('index_episode' "" type=regex)|'index_title' ".*(E\d+)"}
index_episode.episode {substring(type=regex pattern="S'S1'E'E1'""E'E1'")|'index_temp_9' "S\d+E\d+\|E\d+"}
*
index_title.modify {remove('index_episode' not "")| 'index_episode'}
index_title.modify {cleanup}
index_subtitle.modify {cleanup}
*
index_temp_1.modify {set|'config_site_id'}
index_temp_2.modify {calculate(format=date,java)|'index_start'}
index_temp_3.modify {set|(p_channelId%3A'index_temp_1')AND(p_start%3A%5B'index_temp_2'+TO+*%5D)}
*
index_urlshow.modify {set|http://epg.cms.now-tv.com/nowtv-api/program-search/?wt=json&start=0&rows...}
index_urlshow.modify {replace|###details###|'index_temp_3'}
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
end_scope
*
title.scrub {single|"p_name_zh_tw":"||"|"}
description.scrub {single|"p_synopsis_zh_tw":"||"|"}
*
title.modify {remove('index_subtitle' not "")|-'index_subtitle'}
title.modify {remove('index_episode' not "")| 'index_episode'}
http://epg.cms.now-tv.com/nowtv-api/program-search/?q=p_key:epg_20190220...
Where is the problem?
Is there no solution?
http://epg.cms.now-tv.com/nowtv-api/program-search/?q=p_key:epg_20190220...
index_urlshow link is
http://epg.cms.now-tv.com/nowtv-api/program-search/?q=p_key:epg_********...
P_key: epg_*** is obtained from http://epg.cms.now-tv.com/gw-epg/epg/en_us/20190306/prf136/resp-ch/ch_11...
I want to add the corresponding p_key: epg_*****"value to index_urlshow link for each time period, then collect the corresponding description, how to write the rules? The data you collected above should be correct. What is your rule code?
index_temp_2.modify {calculate(format=date,java)|'index_start' 00:08:00 -}???
he can use the url he has(he uses a diff url_index) and it has the P_key:
atleast i think he is as the details url is for the app so i assume his url_index is the app one also.
I used this to adjust the time, the result is that the first day time and the title and details of the program can match, the next day is not. I need you to help me see where the mistake is.
u mean u use something someone else created and ur trying to pass it off as ur own.
if you were smart enough to do what you have you would have no problem seeing your mistake.
later.
You can teach me, not satirize me.
I use NowTV
Suggest you just use this utility http://www.webgrabplus.com/download/utility/xmltvtimecorrect
k.
unable to solve !
*
index_temp_1.modify {set|'config_site_id'}
index_temp_2.modify {calculate(format=date,java)|'index_start'}
index_temp_3.modify {set|(p_channelId%3A'index_temp_1')AND(p_start%3A%5B'index_temp_2'+TO+*%5D)}
How to adjust the time