**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: starhub.com * @MinSWversion: V1.1.1/52 * none * @Revision 5 - [02/01/2014] Francis De Paemeleere * fix detail page grabbing (url show + episode) * @Revision 4 - [24/10/2013] Francis De Paemeleere * change in site_id (includes &isWeb=1 or 0), channellist excludes duplicates * @Revision 3 - [04/11/2012] Jan van Straaten * change in site_id (includes &isWeb=1 or 0), channellist excludes duplicates * @Revision 2 - [] * added channel list, changes in url's (site change) * @Revision 1 - [] * small change in showsplit (site change) * @Remarks: * Singapore * Version for English channels * @header_end **------------------------------------------------------------------------------------------------ site {url=starhub.com|timezone=UTC+08:00|maxdays=7|cultureinfo=en|charset=UTF-8|titlematchfactor=50} site {ratingsystem=SG|episodesystem=xmltv_ns} url_index{url()|http://tvguide.starhub.com/tvguidephase2chinfo?|channel|&day=|urldate|&errormsg=} urldate.format {daycounter|0} index_showsplit.scrub {multi|
|} index_variable_element.modify {clear} index_variable_element.modify {addstart(scope=indexshowdetails)|'config_site_id'} index_variable_element.modify {substring(scope=indexshowdetails type=regex)|isWeb=(\d{1})} index_urlshow {url|http://tvguide.starhub.com/tvguidephase2proginfo?p=|onclick="loadProgramInfoTabByProgram('||',this,'tr'|;">} index_urlshow.modify {addend(scope=indexshowdetails)|&day=&isweb='index_variable_element'} * index_start.scrub {single|
|||
} index_title.scrub {single(separator="(" include=first)|
|||} * title.scrub {single|
|id="pi_tn_title">||

} subtitle.scrub {single|
Episode Title
|||
} description.scrub {single()|
Synopsis
|||
} actor.scrub {single(separator=",")|
Cast
|||
} rating.scrub {single|
Classification
|||} productiondate.scrub {single|
|id="pi_tn_title">||

} temp_1.scrub {single(separator="(" exclude=first include="S")|
|id="pi_tn_title">||

} * season part of episode temp_2.scrub {single|
Episode Number
|||} * * operations: title.modify {remove| ('productiondate')} title.modify {remove| ('temp_1'} * remove season description.modify {remove| ('productiondate')} description.modify {cleanup} * convert episode in xmltv_ns * temp_1 = season * temp_2 = episode temp_1.modify {remove|S} temp_1.modify {remove|)} temp_1.modify {calculate(not="" format=F0)|1 -} temp_2.modify {calculate(not="" format=F0)|1 -} episode.modify {clear} episode.modify {addend('temp_1' not="")|'temp_1'} episode.modify {addend|.} episode.modify {addend('temp_2' not="")|'temp_2'} episode.modify {addend|.} episode.modify {clear(="..")} * * Added by Christer Johansen 3.1.2014 * Remove Chinese characters from category, title, subtitle and description index_category.modify {remove(type=regex)|[\u4E00-\u9FFF]} index_title.modify {remove(type=regex)|[\u4E00-\u9FFF]} index_subtitle.modify {remove(type=regex)|[\u4E00-\u9FFF]} index_description.modify {remove(type=regex)|[\u4E00-\u9FFF]} ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start ** each channel can be mobile or not. ** this is indicated by isWeb=0 or isWeb=1 ** this one and zero can be found as the last number of the channel id value ** eg. channels 106 will have option value 1060 if it is a mobile and 1061 if it is a normal channel *url_index{url|http://tvguide.starhub.com/tvguidephase2favourite/} *index_site_id.scrub {|} * dummy scrub to force a channel file *index_temp_4.scrub {multi|