**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: m.dstv.com * @MinSWversion: V1.57 * none * @Revision 8 - [04/12/2016] Blackbear199 * Adjust .channels.xml generation, to allow country selection * change ini name to m.dstv.com.ini * other site changes * @Revision 7 - [08/04/2015] Francis De Paemeleere * Adjust .channels.xml generation, to get all Bouquets * @Revision 6 - [07/04/2015] Francis De Paemeleere * completely new, due to site change * @Remarks: * This site needs a user-agent to be defined in the config file! * Only quick fix done (could maybe use some further parsing like episode, sub-title, ...) * @header_end **------------------------------------------------------------------------------------------------ site {url=m.dstv.com|timezone=UTC|maxdays=8|cultureinfo=en-GB|charset=utf-8|titlematchfactor=90} site {episodesystem=onscreen|ratingsystem=onscreen} * url_index{url|http://m.dstv.com/en/tvguide?utf8=%E2%9C%93&channel=|channel|&date=|urldate} url_index.headers {customheader=Accept-Encoding=gzip,deflate} urldate.format {datestring|yyyy-MM-dd} * index_showsplit.scrub {regex||]*class="list"[^>]*>(?:.*?())*?\s*
||} * scope.range{(splitindex)|end} index_showsplit.modify {substring(type=regex)|""} * only get rows where a time stamp is in end_scope * scope.range{(indexshowdetails)|end} index_start.scrub {regex||^.*?]*>\s*(\d{2}\:\d{2})||} index_title.scrub {single|||} index_subtitle.scrub {single(separator=" - " include=last)|

'||'|'} index_subtitle.modify {remove(type=regex)|\d+/\d+} index_episode.scrub {single(pattern="S'S1'/E'E1'" separator=" - " include=first)|

'||'|'} index_description.scrub {regex||

(?:\'[^\']*\'\.\s)?([^<]*)

||} index_rating.scrub {single|

||

|

} index_rating.modify {remove|-} index_category.modify {substring(type=regex)|'index_rating' "\w{3,}"} index_category.modify {remove(type=regex)|\w+\d+} index_rating.modify {remove(separator=" ")|'index_category'} index_rating.modify {replace|, |/} index_rating.modify {replace| |\|} end_scope * ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### BOUQUET FILE CREATION (only to create the xxx-channel.xml file) ** *url_index{url|http://m.dstv.com/?locale=en} *site {loadcookie=m.dstv.com.cookies.txt} *index_site_id.scrub {multi(includeblock=1)|