You are here

Program Details for NowTV in Hong Kong

12 posts / 0 new
Last post
bahala520
Offline
Joined: 7 years
Last seen: 5 years
Program Details for NowTV in Hong Kong

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...

bahala520
Offline
Joined: 7 years
Last seen: 5 years

Where is the problem?

bahala520
Offline
Joined: 7 years
Last seen: 5 years

Is there no solution?

bahala520
Offline
Joined: 7 years
Last seen: 5 years
bahala520
Offline
Joined: 7 years
Last seen: 5 years

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?

bahala520
Offline
Joined: 7 years
Last seen: 5 years

index_temp_2.modify {calculate(format=date,java)|'index_start' 00:08:00 -}???

Blackbear199
Online
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 54 sec

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.

bahala520
Offline
Joined: 7 years
Last seen: 5 years

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.

Blackbear199
Online
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 54 sec

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.

bahala520
Offline
Joined: 7 years
Last seen: 5 years

You can teach me, not satirize me.

jksmurf
Offline
jksmurf's picture
Donator
Joined: 11 years
Last seen: 2 years

I use NowTV
Suggest you just use this utility http://www.webgrabplus.com/download/utility/xmltvtimecorrect

k.

bahala520
Offline
Joined: 7 years
Last seen: 5 years

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

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