**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: zap2it.com
* @MinSWversion: V1.57
* @Revision 2 - [07/11/2016] Blackbear199
* - index showsplit improvement
* - changed to single day index page scrubbing - slight speed improvement
* @Revision 1 - [07/08/2016] Blackbear199
* - added "No Description Available" when description is empty.
* @Revision 0 - [22/03/2016] Blackbear199
* - creation
* @Remarks:
* @header_end
**------------------------------------------------------------------------------------------------
site {url=zap2it.com|timezone=America/New_York|maxdays=14.1|cultureinfo=en-US|charset=UTF-8|titlematchfactor=90}
site {ratingsystem=MPAA|episodesystem=xmltv_ns}
*
url_index{url|http://tvlistings.zap2it.com/tvlistings/ZCSGrid.do?sgt=list&fromTimeInMillis=|urldate|&stnNum=}
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
urldate.format {datenumber|JAVA|0}
*
* disable this section to create provider or channel list by placing a * at the beginning of each line
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
scope.range{(urlindex)|end}
index_variable_element.modify {set|'config_site_id'}
url_index.modify {addend|'index_variable_element'}
end_scope
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* end disable section
*
index_showsplit.scrub {multi(excludeblock="Yesterday""Last Night")|
"}
*
index_urlchannellogo {url|||||}
index_title.scrub {regex||id="rowTitle[^>]*>(.+?)[^>]*>||}
index_subtitle.scrub {single|||}
index_rating.scrub {single||||}
index_rating.scrub {single('index_rating' "")|title="TV Rating">|||}
*
index_urlshow {url||class="zc-ssl-pg-title" href='||'>|'>}
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
*
index_description.modify {addstart('index_urlshow' "")|No Description Available..}
index_subtitle.modify {remove|"}
index_rating.modify {remove(type=regex)|[^>]*(\(.*\))}
end_scope
*
scope.range{(showdetails)|end}
detail_title.scrub {single|||
|}
detail_description.scrub {single||||
}
detail_description.scrub {single||
|}
detail_director.scrub {multi|itemprop="director"|class="link">||}
detail_actor.scrub {multi|itemprop="actor"|class="link">||}
detail_producer.scrub {multi|itemprop="producer"|class="link">||}
detail_category.scrub {multi(separator=", ")||||}
detail_productiondate.scrub {single|itemprop="datePublished"|'>||}
*
index_urlsubdetail {url||class="zc-ssl-pg-ep" href='||'>|'>}
index_urlsubdetail.headers {customheader=Accept-Encoding=gzip,deflate}
*
detail_description.modify {addstart("")|No Description Available..}
detail_description.modify {remove('index_urlsubdetail' not "")|No Description Available..}
end_scope
*
scope.range{(showsubdetails)|end}
subdetail_title.scrub {single||"/>}
subdetail_description.scrub {single|||
|}
subdetail_temp_2.scrub {multi|Cast:|||}
subdetail_episode.scrub {single(pattern="S'S1'E'E1'""E'E1'")||||
}
subdetail_starrating.scrub {single||||}
subdetail_productiondate.scrub {single|}
*
subdetail_description.modify {addstart("")|No Description Available..}
end_scope
*
actor.modify {addstart('actor' "")|'subdetail_temp_2'}
*
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### PROVIDER FILE CREATION (only to create the xxx-channel.xml file)
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
*
* disable all lines from scope.range to end_scope above
* add your ziptal/postal code to the site_id="" and copy it to WebGrab++.comfig.xml,set 0
* example zip 10001 or postal code S4N0A1
*
* dummy
*
* run webgrab and rename the zap2it.com.channels.xml to providers.zap2it.com.channels.xml
* disabled this section by adding * to the beginning of the lines,continue below to create a channel list
*
*
**@auto_xml_channel_start
*{url|http://tvlistings.zap2it.com/tvlistings/ZBChooseProvider.do?method=getProviders}
*scope.range{(urlindex)|end}
*index_variable_element.modify {set|'config_site_id'}
*url_index.headers {method=POST|contenttype=application/x-www-form-urlencoded}
*url_index.headers {accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8}*url_index.headers *{postdata=zipcode='index_variable_element'&cancelMe=}
*end_scope
*index_site_id.scrub {multi|Choose Your Provider||}
*index_site_channel.scrub {multi|lineupId=|>||
}
**@auto_xml_channel_end
*
*
*
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
*
* disable all lines from scope.range to end_scope above
* added your provider from the file created above,set 0
* example
* DISH New York (New York)
* run webgrab to create the zap2it.com.channels.xml
* disabled this section by adding * to the beginning of the lines
* enable all lines from scope.range to end_scope above
*
** @auto_xml_channel_start
*url_index{url|http://tvlistings.zap2it.com/tvlistings/ZCGrid.do?method=decideFwdForLineup&}
*scope.range{(urlindex)|end}
*index_variable_element.modify {set|'config_site_id'}
*url_index.modify {addend|'index_variable_element'}
*end_scope
*index_site_channel.scrub {multi||">}
** @auto_xml_channel_end