46 lines
2.4 KiB
INI
Executable File
46 lines
2.4 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
|
* @header_start
|
|
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
|
* @Site: canalplus-export.es
|
|
* @MinSWversion:
|
|
* @Revision 0 - [25/09/2015] Willy De Wilde
|
|
* - creation
|
|
* @Remarks:
|
|
* @header_end
|
|
**------------------------------------------------------------------------------------------------
|
|
site {url=canalplus-export.es|timezone=Europe/Madrid|maxdays=10.1|cultureinfo=es|charset=UTF-8|titlematchfactor=90|retry=<retry time-out="30">2</retry>}
|
|
urldate.format {datestring|yyyy-MM-dd}
|
|
url_index{url ()|http://comunicacion.canalplus.es/guiaProgramacion/exportar}
|
|
|
|
scope.range {(urlindex)|end}
|
|
index_variable_element.modify {clear}
|
|
index_variable_element {addstart (format=date,yyyy-MM-dd)|'urldate'}
|
|
index_variable_element.modify {calculate(format=date,yyyy-MM-dd)|'urldate' 10:00:00 +} * adds 10 days
|
|
url_index.headers {method=POST|contenttype=application/x-www-form-urlencoded}
|
|
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
|
|
url_index.headers {postdata=POSTDATA=fechaInicio='urldate'&fechaFin='index_variable_element'&genero=0&formato=xml&selPredefinicion=0&cadena%5B%5D='channel'}
|
|
end_scope
|
|
|
|
index_showsplit.scrub {multi ()|<pase cadena='||</pase>}
|
|
*
|
|
index_start.scrub {single|<hora>||</}
|
|
index_start.modify {substring(type=char)|'index_start' 0 5}
|
|
index_title.scrub {single|<descripcion_corta>||</}
|
|
index_subtitle.scrub {single|<sub-title|>|</sub-title>|</sub-title>}
|
|
index_temp_1.scrub {single|<sinopsis_corta>||</}
|
|
index_description.scrub {single|<sinopsis_larga>||</}
|
|
index_description.modify {remove|'index_temp_1'}
|
|
index_description.modify {addstart ('index_temp_1' not "")| 'index_temp_1'}
|
|
index_category.scrub {multi|<tipo_ficha>||</}
|
|
*
|
|
|
|
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
|
** @auto_xml_channel_start
|
|
*** you can disable the following two lines after the first successfull run (optional)
|
|
*url_index{url ()|http://comunicacion.canalplus.es/guiaProgramacion/exportarProgramacion}
|
|
*index_site_channel.scrub {multi|<ul id="yw0"|type="checkbox" />|<|<p/>}
|
|
*index_site_id.scrub {multi|<ul id="yw0"|<input value="|"|<p/>}
|
|
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
|
|
** @auto_xml_channel_end
|