You are here

Help with Brasil_sky.com.br

1 post / 0 new
didiugo
Offline
Joined: 9 years
Last seen: 4 years
Help with Brasil_sky.com.br

hello every one i like ask for help  on this i cant make this work  i have this picture  and this  config i did some changes my self but still dont work please any help  thank you 

**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: sky.com.br
* @MinSWversion: V1.1.1
*   none
* @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.m2|timezone=UTC-03:00|maxdays=4.1|cultureinfo=pt-BR|charset=utf-8|titlematchfactor=90}
url_index{url|http://www.sky.com.br/servicos/Guiadatv/Programacao/Listar/|channel}
http://www.sky.com.br/site/m2/Programacao/Listar/350
urldate.format {daycounter|0} * no date component
index_showsplit.scrub {multi|Canal Logo:|||}
* this urlshow is often blocked by the site
*index_urlshow {url|http://www.sky.com.br|<a href="https://webgrabplus.com/%7C%7C">|</div>}
*http://www.sky.com.br/site/m2/Programacao/Detalhes/2121/EP005505270000/True
*
* altenative to get the showdetails, using thePOST method:
index_variable_element.modify {remove|'index_variable_element'} *clear
index_temp_3.scrub {single|<a href="https://webgrabplus.com/%7CDetalhes/%7C/%7C%3C/div%3E%7D%20%2A%20the%20IdPrograma_index_variable_element.modify%20%7Baddstart%7C%5C%7B"pIdPrograma":"'index_temp_3'"\}}
index_urlshow.modify {addstart|http://www.sky.com.br/servicos/Guiadatv/Programação}
index_urlshow.headers {method=POST|contenttype=application/json|postdata='index_variable_element'}
*
index_temp_1.scrub {single|</strong>|!?!?!|Periodo |</div>} * try start
index_title.scrub {single(separator=" - ")|<strong>||</strong>|</div>} 
*
title.scrub {single(separator=" - " include=first)|NomePrograma":"||","|","}
subtitle.scrub {single(separator=" - " exclude=first)|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|NomeSubCategoria":"||"|"}
*episode.scrub {single|"Episodio":||,"|,"} *always 0??
productiondate.scrub {single|"AnoLancamento":||,"|,"}
*
* operations:
index_temp_1.modify {cleanup}
index_start.modify {calculate(format=time)|'index_temp_1'}
index_start.modify {calculate('index_temp_1' ~ "Tarde" format=time)|12:00 +}
index_temp_2.modify {addstart('index_temp_1' ~ "Noite")|1}
index_temp_2.modify {calculate('index_start' >= "7" format=F0)|1 +} * 'and' function noite 'and' later than 7:00 = 2
index_start.modify {calculate('index_temp_2' "2" format=time)|12:00 +}
description.modify {replace|=>|...}
temp_1.modify {substring(type=char)|'description' 0 2} * first 2 chars of description
description.modify {remove('temp_1' ": " type=char)|0 2}
description.modify {cleanup}
episode.modify {addstart('subtitle' ~ "Temporada")|'subtitle'}
subtitle.modify {remove(~ "Temporada")|'subtitle'}
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)
**
** @auto_xml_channel_start
*url_index{url|http://www.sky.com.br/servicos/Guiadatv/}
*index_site_channel.scrub {multi(include=2)|<a href="https://webgrabplus.com/servicos/Guiadatv/Programa%C3%A7%C3%A3o/%7C%3Ctd%3E%7C%3C/td%3E%7C%3C/tr%3E%7D_%2Aindex_site_id.scrub%20%7Bmulti%7C%3Ca%20href%3D"/servicos/Guiadatv/||">|</tr>}
** @auto_xml_channel_end

Attachments: 

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl