**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: yo.tv
* @MinSWversion: V2.0
* @Revision 9 - [04/10/2017] Netuddki
* - Fixed an issue with Episode scrubbing (Season 7 Episode 7 of 0)
* @Revision 8 - [25/03/2017] Netuddki
* - Merged two different inis by Blackbear and Netuddki
* @Revision 7 - [28/03/2017] Netuddki
* - Added option for onscreen OR xmltv_ns episode system
* - Changed "Rating" to "Starrating"
* @Revision 6 - [23/05/2017] Blackbear199
* - improved details for some shows that details page returns a error(uses a subdetail page)
* @Revision 5 - [18/12/2016] Blackbear199
* - update season/episode to webgrab 56.25+ version
* - added channels.xml creation for country's that do not use zip/postal code(use region name).example uk.
* @Revision 4 - [22/04/2016] 1NSdbZVbpZDX
* - fix title to match generic siteini, fix credits details
* added subtitles and production date
* @Revision 3 - [31/01/2016] 1NSdbZVbpZDX
* - fix subtitle, episode and gabs
* @Revision 2 - [28/01/2016] Francis De Paemeleere
* - create a country only channels.xml generation
* @Revision 1 - [27/01/2016] 1NSdbZVbpZDX
* - make a generic siteini
* @Revision 0 - [08/09/2014] Willy De Wilde/Francis De Paemeleere
* - creation
* @Remarks:
* @header_end
**------------------------------------------------------------------------------------------------
*
site {url=yo.tv|timezone=UTC|maxdays=14.14|cultureinfo=en-GB|charset=UTF-8|titlematchfactor=50|nopageoverlaps}
site {ratingsystem=US}
*
*site {episodesystem=onscreen} *Enable for Onscreen Episode System
site {episodesystem=xmltv_ns} *Enable for xmltv_ns Episode System
*
url_index{url |http://##COUNTRY##.yo.tv/api/GS?cid=##CHANNEL_ID##,&offset=,&day=|urldate|}
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
urldate.format {daycounter|0}
scope.range {(urlindex)|end}
index_temp_1.modify {substring(type=regex)|'config_site_id' "COUNTRY:([^,]*)"}
url_index.modify {replace|##COUNTRY##|'index_temp_1'}
index_temp_1.modify {substring(type=regex)|'config_site_id' "PROVIDER_ID:([^,]*)"}
url_index.modify {replace|##PROVIDER_ID##|'index_temp_1'}
index_temp_1.modify {substring(type=regex)|'config_site_id' "CHANNEL_ID:([^,]*)"}
url_index.modify {replace |##CHANNEL_ID##|'index_temp_1'}
end_scope
index_showsplit.scrub {multi|["||"]}
*index_showsplit.modify {(debug)} for debug
index_start.scrub {single |data-time=|'|'|data-flags}
index_title.scrub {single (separator=": " include=first)||
}
index_title.modify {remove(type=regex)|^[^>]*>}
index_title.modify {cleanup (tags="")}
index_title.modify {cleanup (tags="<"">")}
index_subtitle.scrub {single (separator=": " exclude=first)||
}
index_subtitle.modify {remove(type=regex)|^[^>]*>}
index_subtitle.modify {cleanup (tags="<"">")} *NEW
index_temp_3.scrub {regex ||\((\d{4})\).<\/h2>\s||} *for productiondate
index_title.modify {remove(type=regex)|(.\(\d{4}\)$)}
index_subtitle.modify {remove(type=regex)|(.\(\d{4}\)$)}
*
index_temp_1.scrub {single|href='||'>|'>}
index_temp_2.modify {substring(type=regex)|'config_site_id' "COUNTRY:([^,]*)"} *for urlshow
index_urlshow.modify {set|http://'index_temp_2'.yo.tv'index_temp_1'}
*
title.scrub {single (separator=": " include=first)|bg-title" >|||}
title.modify {remove (type=regex)|(.\(\d{4}\)$)}
*title.modify {addstart("")|'index_title'}
subtitle.scrub {single (separator=": " exclude=first)|
|||
}
subtitle.modify {remove (type=regex)|(\s\(\d{4}\))}
subtitle.modify {remove | Season\s([1-9]+)||}
temp_1.modify {addstart(not "")|S}
temp_2.scrub {regex||Season\s[1-9]+\sEpisode\s([1-9]+)||}
temp_2.modify {addstart(not "")|E}
temp_2.modify {addstart('temp_1' not "")|'temp_1'}
temp_3.scrub {regex||Season\s[1-9]+\sEpisode\s[1-9]+\sof\s([1-9]+)||}
temp_3.modify {addstart(not "")|Et}
temp_3.modify {addstart('temp_2' not "")|'temp_2'}
episode.modify {set(pattern="S'S1'E'E1'Et'Et1'""S'S1'E'E1'""S'S1'""E'E1'")|'temp_3'}
*
subtitle.scrub {single |prog box">|| |}
subtitle.modify {cleanup (tags="<"">")}
subtitle.modify {remove (type=regex)|(.Episode.*)}
subtitle.modify {remove (type=regex)|(Rating.*)}
productiondate.modify {addstart |'index_temp_3'}
*starrating.scrub {single |Rating:
||