85 lines
3.6 KiB
INI
Executable File
85 lines
3.6 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
|
* @header_start
|
|
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
|
* @Site: tvmagazine.com.br
|
|
* @MinSWversion:V1.57
|
|
* @Revision 2 - [28/11/2016] Blackbear199
|
|
* general fixes
|
|
* @Revision 1 - [13/06/2016] 1NSdbZVbpZDX
|
|
* general fixes
|
|
* @Revision 0 - [03/12/2015] 1NSdbZVbpZDX
|
|
* - creation
|
|
* @Remarks:
|
|
* @header_end
|
|
**------------------------------------------------------------------------------------------------
|
|
*
|
|
site {url=tvmagazine.com.br|timezone=Brazil/East|maxdays=7|cultureinfo=pt-BR|charset=iso-8859-1|titlematchfactor=60|nopageoverlaps}
|
|
site {ratingsystem=ES|episodesystem=onscreen}
|
|
*
|
|
url_index{url|http://www.tvmagazine.com.br/guia/canal/|channel|/|urldate|}
|
|
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
|
|
*
|
|
urldate.format {datestring|dd/MM/yyyy}
|
|
*
|
|
scope.range {(datelogo)|end}
|
|
index_urlchannellogo {url|http://www.tvmagazine.com.br/imagens/icones/150|src="/imagens/icones/||"|"}
|
|
index_urlchannellogo.modify {remove|600}
|
|
end_scope
|
|
*
|
|
index_showsplit.scrub {multi|<ul class="ultimas">|<li itemscope|</li>|</ul>}
|
|
*
|
|
index_urlshow {url|http://www.tvmagazine.com.br|<h2 itemprop="name">|<a href="|"|</a>}
|
|
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
|
|
*
|
|
index_start.scrub {regex||content="(\d{4}-\d{3}-\d{2} \d{2}:\d{2}:\d{2})-\d{4}"||}
|
|
index_title.scrub {single(separator=": " include=first)|<h2 itemprop="name">|">|</a>|</h2>}
|
|
index_episode.scrub {regex(pattern="Temporada 'S1', Episódio 'E1'")||<span>[^-]*-\s(Temporada \d+, Episódio \d+)</span>||}
|
|
*
|
|
scope.range {(showdetails)|end}
|
|
title.scrub {single(separator=": " include=first)|<h1 itemprop="name">||</h1>|</h1>}
|
|
subtitle.scrub {single(separator=": " exclude=first)|<h1 itemprop="name">||</h1>|</h1>}
|
|
titleoriginal.scrub {single|</h1>||</div>|</div>}
|
|
description.scrub {single|itemprop="description">||</div>}
|
|
category.scrub {single(separator=" / ")|Gênero</span>||</li>|<li>}
|
|
director.scrub {single|Diretor</span>||</li>|<li>}
|
|
actor.scrub {single(separator=", ")|Elenco</span>||</li>|<li>}
|
|
productiondate.scrub {single(separator=" - " include=last)|País e Ano</span>||</li>|<li>}
|
|
country.scrub {single(separator=" - " include=first)|País e Ano</span>||</li>|<li>}
|
|
rating.scrub {single|Atributos</span>|/>||</li>}
|
|
rating.modify {remove|\n </li>}
|
|
*
|
|
description.modify {remove| TVMGZN.}
|
|
description.modify {remove(~ "Episódio" type=sentence)|0 1}
|
|
end_scope
|
|
*
|
|
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
|
**
|
|
*provider codes
|
|
*Algar-TV,0
|
|
*Cabo-Telecom,0
|
|
*Claro-TV,0
|
|
*GVT-TV,0
|
|
*NET,0
|
|
*OI-TV,0
|
|
*Sim-TV,0
|
|
*SKY,0
|
|
*TV-Alphaville,0
|
|
*TVN-Digital,0
|
|
*Vivo-TV,0
|
|
*Vivo-Fibra-Plus,0
|
|
**
|
|
** @auto_xml_channel_start
|
|
*url_index{url|http://www.tvmagazine.com.br/guia/programacao,|subpage|,0}
|
|
*subpage.format {list|Algar-TV|Cabo-Telecom|Claro-TV|GVT-TV|NET|OI-TV|Sim-TV|SKY|TV-Alphaville|Vivo-TV|Vivo-Fibra-Plus}
|
|
*index_site_id.scrub {|}
|
|
*index_temp_9.scrub {multi|<link rel="canonical" ||<div id="contato">|<div id="contato">}
|
|
*loop{(each "index_temp_8" in 'index_temp_9')|end}
|
|
*index_site_id.modify {substring(type=regex)|'index_temp_8' "<a href=\"\/programacao\/(.*?)\"><img"}
|
|
*index_site_channel.modify {substring(type=regex)|'index_temp_8' "<img src=\"\/imagens/icones/[^\.]*\.png" alt="([^\"]*)" style="}
|
|
*end_loop
|
|
*scope.range {(channellist)|end}
|
|
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
|
|
*end_scope
|
|
** @auto_xml_channel_end
|