**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: clarotv.com.br * @MinSWversion: 1.1.1/56.26 * @Revision 1 - [27/06/2016] Blackbear199 * - fix only 3 days epg,updated to new season/episode method * @Revision 0 - [14/06/2016] Blackbear199 * - creation * @Remarks: channel A&E does not work * @header_end **------------------------------------------------------------------------------------------------ site {url=clarotv.com.br|timezone=Brazil/East|maxdays=25|cultureinfo=pt-BR|charset=UTF-8|titlematchfactor=90} site {ratingsystem=BR|episodesystem=onscreen} url_index{url(debug)|http://clarotv.claro.com.br/GuiaProgramacao/getProgramacoesCanais/##channel##/all/numero_asc/|urldate|/1} url_index.headers {customheader=Accept-Encoding=gzip,deflate} urldate.format {datestring|dd-MM-yyyy} * scope.range{(urlindex)|end} index_temp_1.modify {set|'config_xmltv_id'} index_temp_1.modify {remove|.} index_temp_1.modify {remove|+ } index_temp_1.modify {remove| +} index_temp_1.modify {remove(type=regex)|\s\*e} index_temp_1.modify {remove(type=regex)|Discovery Home([^.]*$)} index_temp_1.modify {replace|ç|%c3%a7} index_temp_1.modify {replace|â|%c3%a2} index_temp_1.modify {replace|ã|%c3%a3} index_temp_1.modify {replace|ú|%c3%ba} index_temp_1.modify {replace|á|%c3%a1} index_temp_1.modify {replace|Õ|%c3%95} index_temp_1.modify {replace|+|%2b} index_temp_1.modify {replace| |%20} index_temp_1.modify {replace|\u0026|} index_temp_1.modify {replace|MTV%20|MTV} url_index.modify {replace|##channel##|'index_temp_1'} end_scope * scope.range{(splitindex)|end} index_variable_element.modify {set|'config_site_id'} index_showsplit.scrub {multi(include=""IdCanal":'index_variable_element'")|"Programas":[|{|}|]} end_scope * scope.range{(indexshowdetails)|end} index_start.scrub {single(pattern="HHmm")|"HoraInicio":"||"|"} *index_duration.scrub {single|"Duracao":||,|,} *index_stop.scrub {single(pattern="HHmm")|"HoraFim":"||"|"} * index_title.scrub {single|"Titulo":"||"|"} index_description.scrub {single|"Descricao":"||"|"} index_description.modify {remove| \} index_director.scrub {single(separator=", ")|"Direcao":"||"|"} index_actor.scrub {single(separator=", ")|"Atores":"||"|"} index_productiondate.scrub {single|"Ano":"||"|"} index_rating.scrub {single|"Idade":||}|}} index_rating.modify {addend(not "")|+} * index_episode.modify {substring(type=regex pattern=" 'S1'ª Temp. Ep. 'E1'""Ep. 'E1'")|'index_title' "((\s\d+ª\sTemp\.)*\sEp\.\s\d+)$"} *season/index_episode from title - Sxª Temp. Ep. Ex,Ep. Ex index_title.modify {remove(type=regex)|((\s\d+ª\sTemp\.)*\sEp\.\s\d+)$} * index_title.modify {cleanup} index_description.modify {cleanup} index_director.modify {cleanup} index_actor.modify {cleanup} * * for show details url *index_temp_1.scrub {single|"IdGradePrograma":||,|,} * porg id *index_temp_2.scrub {single|"NumeroCanal":||,|,} *channel # *index_temp_3.scrub {single|"IdCanal":||,|,} * channel id *index_temp_4.scrub {single|"HoraInicio":"||"|"} *unaltered start time end_scope * * details page duplicate of index_page information,nothing to add * *index_urlshow.modify {addstart|http://clarotv.claro.com.br/Tv/Canal/'index_temp_2'/'index_temp_1'-'index_temp_3'-'index_temp_1'-'index_temp_4'/#descricao_programa} *index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} * *scope.range{(showdetails)|end} *title.scrub {single|

||

|} *category.scrub {single||||} *not very good to use,its the genre filter * * duplicate of what available from index page *description.scrub {single|

||

|

} *description.modify {remove| \} *director.scrub {single(separator=", ")||||} *actor.scrub {single(separator=", ")||||} *rating.scrub {multi|span id="programa_atual_idade" class="classif-idade">|||} *rating.modify {addend|+} * *title.modify {remove(type=regex)|((\s\d+ª\sTemp\.)*\sEp\.\s\d+)$} *title.modify {cleanup} *description.modify {cleanup} *director.modify {cleanup} *actor.modify {cleanup} * *end_scope * ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *url_index{url|http://clarotv.claro.com.br/GuiaProgramacao/getProgramacoesCanais/all/all/numero_asc/|urldate|/|subpage|} *subpage.format {list(format=D1 step=1 count=30)|1} *scope.range{(channellist)|end} *index_site_id.scrub {|} *index_temp_9.scrub {multi(debug includeblock="IdLogoCanal")|{"IdCanal"||"DescricaoCanal"|"DescricaoCanal"} *index_site_id.modify {substring(type=regex)|'index_temp_9' "^:([^,]*),\""} *index_site_channel.modify {substring(type=regex)|'index_temp_9' ",\"NomeCanal\":\"(.+?)\","} *index_site_channel.modify {replace|\u0026|&} *end_scope ** @auto_xml_channel_end