**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: plus.es * @MinSWversion: V2.1.2 * @Revision 11 - [04/10/2017] Netuddki * - Reviewed option to get the age of the programs * - Added options to get the star-rating from movistarplus.es * @Revision 10 - [27/05/2017] Netuddki * - Better episode system * - index url changed * @Revision 9 - [26/09/2016] Blackbear199 * - showsplit fix * @Revision 8 - [27/07/2016] Jan van Straaten * - enabled stop time (fix in 56.29) andded end_scope for showdetails * @Revision 7 - [24/07/2016] Blackbear199 * - showsplit fix * @Revision 6 - [11/07/2016] Blackbear199 * - showsplit fix,disabled stop & duration(only 3 days epg when enabled) * @Revision 5 - [12/06/2016] Blackbear199 * - fix subtitle,add option to add season/episode to title * @Revision 4 - [17/02/2016] Blackbear199 * - fixed index_showsplit,actor,director,productiondate scrub. * @Revision 3 - [04/09/2015] Francis De Paemeleere * convert to classical credits * @Revision 2 - [23/07/2015] Willy De Wilde * New website, rewrite * Thanks to aleceuta for finding the json webpage * @Revision 1 - [23/07/2014] Jan van Straaten * - fixed start time errors and added episode, rating and productiondate * @Revision 0 - [16/07/2014] Francis De Paemeleere/ Jan van Straaten * - creation * @Remarks: * @header_end **------------------------------------------------------------------------------------------------ * site {url=plus.es|timezone=Europe/Madrid|maxdays=7|cultureinfo=es-ES|charset=UTF-8|titlematchfactor=70|ratingsystem=ES} site {keepindexpage|allowlastpageoverflow} * site {episodesystem=onscreen} *Enable for Onscreen Episode System *site {episodesystem=xmltv_ns} *Enable for xmltv_ns Episode System * url_index{url|http://www.movistarplus.es/programacion-tv/|urldate|/?v=json} url_index.headers {customheader=Accept-Encoding=gzip,deflate} urldate.format {datestring|yyyy-MM-dd} * index_variable_element.modify {set|"'config_site_id'-CODE"} index_showsplit.scrub {multi|'index_variable_element'|{"ESTRENO"|}|}]}} scope.range{(splitindex)|end} index_temp_1.modify {substring(type=regex)|'index_showsplit' "\"HORA_INICIO\":\"(\d{2}:\d{2})\""} index_temp_1.modify {cleanup(removeduplicates span=1 link="index_showsplit")} end_scope * scope.range{(indexshowdetails)|end} index_start.scrub {single|HORA_INICIO":"||"|"} *index_stop.scrub {single|HORA_FIN":"||"|"} index_title.scrub {single(separator=":""(" include=first)|"TITULO":"||"|"} index_title.modify {cleanup(style=unidecode)} index_category.scrub {single|GENERO|":"|"} index_category.modify {cleanup} index_category.modify {remove|\} * index_urlshow {url||"URL":"||"} index_urlshow.modify {remove|\} index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} end_scope * scope.range{(showdetails)|end} title.modify {addstart|'index_title'} titleoriginal.scrub {single|

|(|)|

} titleoriginal.modify {remove|)} subtitle.scrub {single(separator=":" include=last)|
|

|

|
} subtitle.modify {clear(~ "Episodio")} subtitle.modify {remove(type=regex)|\(.+?\)} subtitle.modify {cleanup(style=unidecode)} subtitle.modify {clear('index_title')} * episode.scrub {regex set(pattern="Temporada 'S1' Episodio 'E1'")||.*?(Temporada \d+\. Episodio \d+)||} episode.modify {replace|.| } * description.scrub {multi|<div itemprop="description"|<p>|</p>|</div>} description.modify {cleanup} *category.scrub {single(separator=" / ")|<p itemprop="genre">||</p>|</p>} director.scrub {single|Director</h3>|<span itemprop="name" >|</span>|</p>}|<h3} actor.scrub {multi|<h3 class="heading">Reparto</h3>|<span itemprop="name" >|</span>|</div>} productiondate.scrub {single|<p itemprop="datePublished"|content="|"| >} showicon.scrub {single|<div class="cover">|<img src="|"| alt} ratingicon.scrub {url|http://www.plus.es|Calificación</h3><img src="||"|"} rating.scrub {single|Calificación</h3>|src="/assets/images/movistar-plus/calf-|.svg"|<div} rating.modify {cleanup(style=upper)} starrating.scrub {single|<div class="rating-value">|<span itemprop="ratingValue" class="rating">|</span>|</div>} starrating.modify {calculate(format=F1)|2 *} starrating.modify {clear("0.0")} starrating.modify {addend(not "")|/10} * * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * to add SxEx: [subtitle] back to title or subtitle remove the * from the beginning of the lines below * this will give a warning that the index_title is different from showdetails title in * webgrab++.log,they can be ignored. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *temp_3.modify {addstart('episode' not "")|'episode'} *temp_3.modify {replace(not "")|Temporada |S} *replace S with T for TxEx format *temp_3.modify {replace(not "")| Episodio |E} *temp_3.modify {addend('subtitle' not "")|: 'subtitle'} *title.modify {addend('temp_3' not "")| 'temp_3'} *adds to title *subtitle.modify {clear} *enable if you use season/episode in subtitle *subtitle.modify {addstart('temp_3' not "")| 'temp_3' } *adds to subtitle *episode.modify {clear} * enable to remove season/episode element from epg data * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * end section * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - end_scope ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *index_site_channel.scrub {multi|"NOMBRE":"||"} *index_site_id.scrub {multi|"CODIGO":"||"} *index_site_channel.modify {cleanup} *index_site_id.modify {cleanup} ** @auto_xml_channel_end