url**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: canada.com * @MinSWversion: 1.1.1/55.11 * @Revision 2 - [21/01/2015] Jan van Straaten * - improved channellist , accepts complex numerical site_id like 51-1 * @Revision 1 - [09/01/2015] Jan van Straaten * - complete new creation * @Remarks: Makes use of the times from showdetail page option of 55.11 * @header_end **------------------------------------------------------------------------------------------------ site {url=canada.com|timezone=US/Eastern|maxdays=8|cultureinfo=en-CA|charset=iso-8859-1|titlematchfactor=0|ratingsystem=CBSC} site {loadcookie=canada.com_cookies.txt} scope.range {(urlindex)|end} index_variable_element.modify {calculate(format=date,unix)|'urldate'} subpage.format {list(step=43200 count=2)|'index_variable_element'} * 12 hour steps ---> set wd=1905 url_index{url()|http://tvmds.tvpassport.com/snippet/white_label/php/grid.php?subid=tvpassport&lang=en&lu=6147&tz=US/Eastern&items=90&sess=4E4C4D36E4C86977A0B6D276886A11AE&st=|subpage|&wd=1905} url_index.headers {customheader=Accept-Encoding=gzip,deflate}* to speedup the downloading of the index pages end_scope * the url from IE Dev tools: http://tvmds.tvpassport.com/snippet/white_label/php/grid.php?subid=tvpassport&mode=json&lang=en&lu=6147&tz=America%2FToronto&items=90&sess=4E4C4D36E4C86977A0B6D276886A11AE&st=&wd=940&nc=0&div=tvmds_frames&si=0&callback=jsonp1420552422682 scope.range {(datelogo)|end} index_variable_element.modify {clear} index_variable_element.modify {addstart|\'tvm_chan_'config_site_id'\'} end_scope scope.range {(splitindex)|end} index_showsplit.scrub {multi(include='index_variable_element')|(.+?)<\/td>||} title=\"Click for more details\" width=\"3%\">Four Senses <\/td> * prepare the urlshow index_temp_1.scrub {regex||TVMDS.programinfo.programDetails\((\d{9}, \d+?, '\d+?.')||} * value 281272512, 6056, '5931D' index_temp_1.modify {addstart(not "")|<id=} index_temp_1.modify {replace|, '|&luid=} index_temp_1.modify {replace|, |&stid=} index_temp_1.modify {remove()|'} * value <id=281272717&stid=6056&luid=5931D index_urlshow.modify {addstart('index_temp_1' not "")|http://tvmds.tvpassport.com/snippet/white_label/php/program_details_V2.php?subid=tvpassport&sid=4E4C4D36E4C86977A0B6D276886A11AE&tz=US/Eastern'index_temp_1'&lang=en} tz=America%2FToronto index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the detail pages end_scope * details: * start time from detail!! temp_1.scrub {single()|Date|tvm-program-details">||} * the date as in Saturday, Dec 13, without the year! temp_2.modify {calculate(format=date,yyyy)|'urldate'} *the year temp_1.modify {addend|, 'temp_2'} * dates as provided need a year to be recognised start.scrub {single()|Time|tvm-program-details">||} start.modify {addstart()|'temp_1' } title.scrub {single||||} title.modify {replace||:} title.modify {cleanup(tags="<"">")} description.scrub {single(separator="

" include=first)|

||

|} description.modify {cleanup(tags="<"">")} rating.scrub {single|Rating|tvm-program-details">||} actor.scrub {regex()||

(.+?)
Cast||} director.scrub {regex||

([^<]*)
Director||} category.scrub {single|Genre|tvm-program-details">||} productiondate.scrub {single|Year|

  • |
  • |} ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *index_site_channel.scrub {regex()||chan_name\\">(.+?)<||} *index_site_id.scrub {regex||