**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: plus.es * @MinSWversion: V2.1.5 * @Revision 13 - [21/07/2018] Trujulu * - Remove unhandled \ on code * - Replace " : " to ": " if needed on wrong titles. * @Revision 12 - [15/04/2018] MrSpock * - Added new fields: writer, composer, producer, presenter, country... * - Fixed titleoriginal and director and other minor improvements (anyway, it is not 100% accurate due to how they put the information) * - Reviewed title, subtitle to better handle season and episode info. * @Revision 11 - [04/10/2017] Blackbear199 * - Reviewed option to get the age of the programs * - Added options to get the star-rating * @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.scrub {single(separator=":" exclude=last)|"TITULO":"||"|"} *For some shows with ':' it does not work properly: * "NCIS: Los Angeles (T5): Ep.17 Entre las líneas enemigas" index_temp_2.scrub {single|"TEMPORADA":"||"|"} index_title.scrub {single|"TITULO":"||"|"} index_title.modify {remove('index_temp_2' not "")| 'index_temp_2'} index_title.modify {remove(type=regex)|"\s*\(T\d+\)"} index_title.modify {remove(type=regex)|":\s*Episodio\s*\d+"} index_title.modify {remove(type=regex)|"\s*Ep\.\s*\d+"} index_title.modify {replace|\/|/} index_title.modify {replace|//|/} index_title.modify {cleanup(style=unidecode)} * Clean title to remove spaces, but it also removes '!' and '?' and ']'... so used this workaround to clean it: index_title.modify {addend|XxyyzZ} index_title.modify {cleanup} index_title.modify {remove|XxyyzZ} index_title.modify {remove|\} * workaround to remove \ from title * *index_category.scrub {single|GENERO|":"|"} *index_category.modify {cleanup} *index_category.modify {remove|\} * show page has more detailed categories 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'} subtitle.scrub {single(separator=":" include=last)|
||
|} titleoriginal.modify {remove(type=regex)|"\.*\s*TEMPORADA \d+/\d+"} titleoriginal.modify {remove(type=regex)|"\.*\s*TEMPORADA \d+"} titleoriginal.modify {remove('title')|'titleoriginal'} * erase if title=titleoriginal * episode.scrub {regex set(pattern="Temporada 'S1' Episodio 'E1'")||||
|} category.modify {remove|Programa} * It does not mean anything useful director.scrub {single|Director|||} showicon.scrub {single|
}
country.modify {remove(type=regex)|"\s*\(\d+\)"}
* Stated real show duration:
temp_1.scrub {single|class="time">||'|}
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
*For use with Rex for MediaPortal:
*to have show duration, original title and country used by Rex, remove the * from the beginning of the lines below:
*starrating.modify {addstart('temp_1' not "")|'temp_1'. }
*starrating.modify {addstart('titleoriginal' not "")|('titleoriginal') }
*starrating.modify {addstart('country' not "")|'country'. }
* in Rex, the following should be used:
*