Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- site {url=plus.es|timezone=Europe/Madrid|maxdays=7|cultureinfo=es-ES|charset=UTF-8|titlematchfactor=70|ratingsystem=ES}
- site {keepindexpage|episodesystem=onscreen|allowlastpageoverflow}
- url_index{url|http://www.movistarplus.es/guia/|urldate|/?v=json&verticalScroll=true&isMobile=false}
- 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|<h1 itemprop="name" class="h-epsilon">|(|)|</h1>}
- titleoriginal.modify {remove|)}
- subtitle.scrub {single(separator=":" include=last)|<div class="title-image">|<h1 class="h-epsilon">|</h1>|</div>}
- subtitle.modify {clear(~ "Episodio")}
- subtitle.modify {remove(type=regex)|\(.+?\)}
- subtitle.modify {cleanup(style=unidecode)}
- subtitle.modify {clear('index_title')}
- *
- * episodesystem=onscreen disable episodesystem=xmltv_ns below
- * ------------------------------------------------------------
- temp_1.scrub {single|<div class="title-image">|TEMPORADA|</|</h1>}
- episode.scrub {single(separator=":" include=first)|<div class="title-image">|<h1 class="h-epsilon">|</h1>}
- episode.modify {clear(~ 'title')}
- episode.modify {addstart('temp_1' not "")|Temporada 'temp_1' }
- episode.modify {cleanup}
- * ------------------------------------------------------------
- * episodesystem=xmltv_ns ***change it above in site{....} disable episodesystem=onscreen above
- * ------------------------------------------------------------
- *temp_1.scrub {single|<div class="title-image">|TEMPORADA|</|</h1>}
- *temp_1.modify {cleanup}
- *temp_3.modify {addend ('temp_1' not "")|'temp_1'}
- *temp_3.modify {calculate(not~"/" format=F0)|1 -}
- *temp_2.scrub {single(separator=":" include=first)|<div class="title-image">|Episodio|</h1>|</div>}
- *temp_2.modify {cleanup}
- *temp_2.modify {calculate(not="" format=F0)|1 -}
- *episode.modify {clear}
- *episode.modify {addend('temp_3' >= "0")|'temp_3'}
- *episode.modify {addend|.}
- *episode.modify {addend|'temp_2'}
- *episode.modify {addend|.}
- *episode.modify {clear(="..")}
- * ------------------------------------------------------------
- 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><img src="/assets/images/icons/svg|/|"| }
- rating.modify {remove|.svg}
- rating.modify {cleanup(style=upper)}
- *
- * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- * 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement