**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: tv.com
* @MinSWversion: 1.1.1/56.12
* @Revision 2 - [12/01/2016] Francis De Paemeleere
* - get all the data available (previous only 3 or 4 days were grabbed)
* @Revision 1 - [05/01/2016] Jan van Straaten
* - remove some special chars in the title (only seen on movies)
* @Revision 0 - [03/11/2015] Jan van Straaten
* - creation
* @Remarks: directv alternative, less details
* @header_end
**------------------------------------------------------------------------------------------------
site {url=tv.com|timezone=UTC|maxdays=10|cultureinfo=en-US|charset=UTF-8|titlematchfactor=90|nopageoverlaps}
site {loadcookie=tv.com.cookies.txt}
urldate.format {datestring|yyyy-MM-dd}
*url_index{url|http://www.tv.com/listings/station/|channel|}
url_index{url(debug)|http://www.tv.com/listings/singlestation/?start=##TIMESTAMP##&station=|channel|}
scope.range {(urlindex)|end}
index_variable_element.modify {calculate(debug format=date,unix)|'urldate'}
url_index.modify {replace(debug)|##TIMESTAMP##|'index_variable_element'}
end_scope
url_index.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the index pages
*scope.range {(splitindex)|end}
*index_showsplit.scrub {single||||}
*index_showsplit.modify {cleanup(style=jsondecode)}
*index_showsplit.modify {substring(type=regex)|
||}
index_temp_1.scrub {regex||data-tmsid="rvp:(\d+?)"||} * id
index_urlshow.modify {set('index_temp_1' not "")|http://www.tv.com/listings/event/?EventTmsId=rvp%3A'index_temp_1'}
*http://www.tv.com/listings/event/?EventTmsId=rvp%3A1952005171
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}* to speedup the downloading of the detail pages
title.scrub {regex||