92 lines
3.9 KiB
INI
Executable File
92 lines
3.9 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
||
* @header_start
|
||
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
||
* @Site: claro.com
|
||
* @MinSWversion: 1.1.1/54
|
||
* @Revision 1 - [14/06/2016] Blackbear199
|
||
* - small fix to description
|
||
* @Revision 0 - [17/05/2016] Blackbear199
|
||
* - creation
|
||
* @Remarks:
|
||
* @header_end
|
||
**------------------------------------------------------------------------------------------------
|
||
site {url=claro.com|timezone=UTC|maxdays=7|cultureinfo=es-CO|charset=UTF-8|titlematchfactor=90}
|
||
site {ratingsystem=CO|episodesystem=onscreen}
|
||
url_index{url|http://devportal.siba.com.co/index.php?action=grilla}
|
||
urldate.format {datestring|yyyy/MM/dd}
|
||
*
|
||
scope.range{(urlindex)|end}
|
||
index_temp_1.modify {calculate(format=date,unix)|'urldate'}
|
||
index_temp_2.modify {calculate(format=date)|'index_temp_1'}
|
||
index_temp_2.modify {calculate(format=date,yyyy/MM/d H:mm)|1:0:00 +}
|
||
index_temp_2.modify {calculate(format=date,unix)}
|
||
end_scope
|
||
*
|
||
url_index.headers {method=POST}
|
||
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
|
||
url_index.headers {accept=application/json, text/javascript, */*; q=0.01}
|
||
url_index.headers {contenttpye=application/x-www-form-urlencoded; charset=UTF-8}
|
||
url_index.headers {postdata=ciudad=10&servicio=10&ini='index_temp_1'&end='index_temp_2'&cat=&chn='channel'&str=&}
|
||
*
|
||
index_showsplit.scrub {multi(debug)|"prog":[|{|}|]}]}
|
||
index_urlchannellogo {url|http://cdn-std-1.sibasa.netdna-cdn.com/co/|"logo":"||"|"}
|
||
*
|
||
scope.range{(indexshowdetails)|end}
|
||
index_start.scrub {single|"ini":||,"|,"}
|
||
index_stop.scrub {single|"fin":||}|}}
|
||
index_title.scrub {single|"nom":"||",|",}
|
||
index_temp_3.scrub {single|"id":"||"|"}
|
||
index_title.modify {cleanup}
|
||
end_scope
|
||
*
|
||
index_urlshow.modify {addstart|http://devportal.siba.com.co/index.php?action=programa}
|
||
index_urlshow.headers {method=POST}
|
||
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
|
||
index_urlshow.headers {accept=application/json, text/javascript, */*; q=0.01}
|
||
index_urlshow.headers {contenttype=application/x-www-form-urlencoded; charset=UTF-8}
|
||
index_urlshow.headers {postdata=prg='index_temp_3'&ciudad=10&servicio=10}
|
||
*
|
||
scope.range{(showdetails)|end}
|
||
title.scrub {single|"nom":"||"|"}
|
||
description.scrub {single|"desc":"||"|"}
|
||
director.scrub {single(separator=",")|"dire":"||"|"}
|
||
actor.scrub {single(separator=",")|{"acto":"||"|"}
|
||
rating.scrub {single|"clas":"||"|"}
|
||
category.scrub {single|"gene":"||"|"}
|
||
productiondate.scrub {single|"ano":"||"|"}
|
||
*
|
||
temp_1.modify {substring(type=regex)|'description' "T\d+\s-"} *season
|
||
temp_1.modify {cleanup(removeduplicates=equal.100)}
|
||
description.modify {remove|'temp_1'}
|
||
temp_1.modify {remove| -}
|
||
temp_1.modify {replace|T|S}
|
||
*
|
||
episode.modify {substring(type=regex)|'description' "Ep\.\d+\."} *episode
|
||
episode.modify {cleanup(removeduplicates=equal.100)}
|
||
description.modify {remove|'episode'}
|
||
episode.modify {replace|Ep.|E}
|
||
episode.modify {remove|.}
|
||
episode.modify {addstart('temp_1' not "")|'temp_1'}
|
||
*
|
||
description.modify {cleanup}
|
||
description.modify {cleanup(tags="/=/ ")}
|
||
title.modify {cleanup}
|
||
director.modify {cleanup}
|
||
actor.modify {cleanup}
|
||
category.modify {cleanup}
|
||
end_scope
|
||
*
|
||
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
||
**
|
||
** @auto_xml_channel_start
|
||
*
|
||
* disable url_index.headers {postdata= line above
|
||
*
|
||
*url_index.headers {postdata=ciudad=10&servicio=10&ini='index_temp_1'&end='index_temp_2'&cat=&chn=&str=&}
|
||
*index_site_id.scrub {|}
|
||
*index_temp_9.scrub {multi(debug excludeblock="ini")|{"id"||"prog":[|"prog"[:}
|
||
*index_site_id.modify {substring(type=regex)|'index_temp_9' "^:\"(\d+)\""}
|
||
*index_site_channel.modify {substring(type=regex)|'index_temp_9' "\"nom\":\"([^>]*)\",\"num\""}
|
||
** @auto_xml_channel_end
|