78 lines
3.5 KiB
INI
Executable File
78 lines
3.5 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
|
* @header_start
|
|
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
|
* @Site: sky.com.br
|
|
* @MinSWversion: V1.1.1
|
|
* none
|
|
* @Revision 4 - [14/06/2016] Blackbear199
|
|
* fix start time,showsplit change
|
|
* @Revision 3 - [27/04/2016] Blackbear199
|
|
* rewrite for new POST method
|
|
* @Revision 2 - [01/06/2013] Jan van Straaten
|
|
* small error in index_temp_1 caused no starttime
|
|
* @Revision 1 - [15/06/2012] Jan van Straaten
|
|
* uses the POST method for the index_urlshow
|
|
* @Remarks:
|
|
* Sky Brasil, using the mobil version for the index and the POST method for the showdetails
|
|
* @header_end
|
|
**------------------------------------------------------------------------------------------------
|
|
site {url=sky.com.br|timezone=UTC|maxdays=7|cultureinfo=pt-BR|charset=utf-8|titlematchfactor=90|episodesystem=onscreen|ratingsystem=BR|allowlastpageoverflow}
|
|
url_index{url|https://www1.sky.com.br/servicos/GuiaProgramacao/ObterGrade}
|
|
urldate.format {datestring|yyyy-MM-dd}
|
|
*
|
|
scope.range{(urlindex)|end}
|
|
url_index.headers {method=POST}
|
|
url_index.headers {accept=application/json, text/javascript, */*; q=0.01}
|
|
url_index.headers {contenttype=application/json}
|
|
url_index.headers {postdata={"DtaInicial":"'urldate'", "DtaFinal":"'urldate' 23:59:00", "ArrayCanais":"'channel'"}}
|
|
end_scope
|
|
*
|
|
index_showsplit.scrub {regex||\{"Canal":.+?"QtdeMinutosExibicao":\d+\}||}
|
|
index_showsplit.modify {cleanup(removeduplicates=equal,100)}
|
|
*
|
|
scope.range{(indexshowdetails)|end}
|
|
*
|
|
index_start.scrub {single|"DataInicioExibicao":"\/Date(||000-|000-}
|
|
index_duration.scrub {single|"QtdeMinutosExibicao":||}|}}
|
|
index_title.scrub {single|"NomePrograma":"||"|"}
|
|
index_subtitle.scrub {single(separator=" - " include=2,3)|"TituloEpisodio":"||"|"}
|
|
index_episode.scrub {single(separator=" - " include=first)|"TituloEpisodio":"||"|"}
|
|
index_temp_3.scrub {single|"IdPrograma":||,|,}
|
|
end_scope
|
|
*
|
|
index_urlshow.modify {addstart|http://www1.sky.com.br/servicos/GuiaProgramacao/ObterPrograma}
|
|
scope.range{(splitindex)|end}
|
|
index_urlshow.headers {method=POST}
|
|
index_urlshow.headers {accept=application/json, text/javascript, */*; q=0.01}
|
|
index_urlshow.headers {contenttype=application/json}
|
|
index_urlshow.headers {postdata={"pIdPrograma":"'index_temp_3'"}
|
|
end_scope
|
|
*
|
|
title.scrub {single|NomePrograma":"||"|"}
|
|
description.scrub {single|"DescricaoPrograma":"||"|"}
|
|
director.scrub {multi|DIRETOR|NomeArtista":"|","|NomePersonagem}
|
|
actor.scrub {multi|ATOR|NomeArtista":"|","|NomePersonagem}
|
|
rating.scrub {single|NomeFaixaEtaria":"||"|"}
|
|
category.scrub {single|NomeCategoria":"||"|"}
|
|
category.scrub {single(separator="\/")|NomeSubCategoria":"||"|"}
|
|
productiondate.scrub {single|"AnoLancamento":||,|,}
|
|
*
|
|
index_subtitle.modify {remove|'index_episode'}
|
|
*
|
|
videoquality.modify {addstart('category' ~ "HD")|HD}
|
|
category.modify {remove|HD}
|
|
category.modify {cleanup(style=sentence)}
|
|
*
|
|
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
|
**
|
|
* disable url_index.headers {postdata= line above
|
|
*
|
|
** @auto_xml_channel_start
|
|
*url_index{url|https://www1.sky.com.br/servicos/GuiaProgramacao/ObterCanais/''}
|
|
*url_index.headers {postdata={}}
|
|
*index_site_channel.scrub {multi|"NomeCanal":"||"|"}
|
|
index_site_id.scrub {multi|"IdCanal":||,|,}
|
|
index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
|
|
** @auto_xml_channel_end
|