**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: radiopower.com.ar * @MinSWversion: V2.1 * @Revision 0 - [01/08/2017] Blackbear199 * - creation * @Remarks: * @header_end **------------------------------------------------------------------------------------------------ site {url=radiopower.com.ar|timezone=America/Argentina/Buenos_Aires|maxdays=7.1|cultureinfo=es-AR|charset=ISO-8859-1|titlematchfactor=90} site {ratingsystem=AR|episodesystem=onscreen|firstday=0123456} * url_index{url|http://www.radiopower.com.ar/programacion/grilla2.php} url_index.headers {customheader=Accept-Encoding=gzip,deflate} * urldate.format {daycounter|0} * index_showsplit.scrub {multi(includeblock="Lunes""Martes""Miercoles""Jueves""Viernes""Sabado""Domingo" exclude="height=\"0%\"")|valign="middle" >|||} scope.range{(splitindex)|end} index_temp_1.modify {set|1} index_temp_2.modify {calculate(type=element format=F0)|'index_showsplit' #} index_temp_3.modify {substring(type=element)|'index_showsplit' 0 1} index_temp_4.modify {substring(type=regex)|'index_temp_3' "height=\"(\d+)%\""} index_temp_4.modify {calculate(format=F1)|4 /} index_temp_4.modify {calculate(format=time,HH:mm)} index_temp_3.modify {replace(type=regex)|]+>(.*?)|00:00 - 'index_temp_4': } index_temp_6.modify {addend|'index_temp_3'#_#} loop{('index_temp_1' < 'index_temp_2')|end} index_temp_4.modify {substring(type=element)|'index_showsplit' 'index_temp_1' 1} index_temp_5.modify {substring(type=regex)|'index_temp_4' "height=\"(\d+)%\""} index_temp_5.modify {calculate(format=F1)|4 /} index_temp_5.modify {calculate(format=time,HH:mm)} index_temp_4.modify {replace(type=regex)|]+>(.*?)|- 'index_temp_5': } index_temp_6.modify {addend|'index_temp_4'} index_temp_6.modify {addend('index_temp_1' < 'index_temp_2')|#_#} index_temp_1.modify {calculate(format=F0)|1 +} end_loop index_showsplit.modify {set|'index_temp_6'} index_showsplit.modify {replace|#_#|\|} *index_showsplit.modify {(debug)} *for debug end_scope * index_start.scrub {regex||]+>(\d{2}:\d{2}) - \d{2}:\d{2}:||} index_temp_1.scrub {regex||]+>(?:\d{2}:\d{2} )?- (\d{2}:\d{2}):||} index_start.modify {set('previous_start' not "")|'previous_stop'} index_stop.modify {calculate('previous_stop' not "" format=time)|'index_start' 'index_temp_1' +} index_title.scrub {regex||]+>(?:\d{2}:\d{2} )?- \d{2}:\d{2}:\s([^<]+)||} index_category.modify {addstart|Musica} ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *index_site_id.scrub {|} *index_site_id.modify {set|radio-power-ar} *index_site_channel.modify {set|Radio Power Argentina} ** @auto_xml_channel_end