64 lines
2.8 KiB
INI
Executable File
64 lines
2.8 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
||
* @header_start
|
||
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
||
* @Site: kombatsport.lu
|
||
* @MinSWversion: 1.1.1/56.25
|
||
* @Revision 0 - [21/06/2016] Blackbear199
|
||
* - creation
|
||
* @Remarks:
|
||
* @header_end
|
||
**------------------------------------------------------------------------------------------------
|
||
site {url=kombatsport.lu|timezone=UTC+02:00|maxdays=14|cultureinfo=en-US|charset=UTF-8|titlematchfactor=90}
|
||
site {ratingsystem=US|episodesystem=onscreen}
|
||
url_index{url|http://www.en.kombatsport.lu/tv-schedule-next-prev}
|
||
urldate.format {datestring|yyyy"%2F"MM"%2F"}
|
||
*
|
||
scope.range{(urlindex)|end}
|
||
index_temp_1.modify {calculate(format=utcdate)}
|
||
index_temp_1.modify {calculate(format=date,dd)}
|
||
index_temp_1.modify {calculate(format=F0)|2 -}
|
||
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 {contenttype=application/x-www-form-urlencoded; charset=UTF-8}
|
||
url_index.headers {customheader=X-Requested-With=XMLHttpRequest}
|
||
url_index.headers {postdata=way=next&date='urldate''index_temp_1'}
|
||
*
|
||
scope.range{(splitindex)|end}
|
||
index_showsplit.scrub {multi(includeblock=1/4)|<div class=\"calendarcell\">|| </div>| </div>}
|
||
index_showsplit.modify {cleanup(style=unidecode)}
|
||
index_showsplit.modify {remove|\\r}
|
||
index_showsplit.modify {remove|\\n}
|
||
index_showsplit.modify {remove|\\t}
|
||
index_showsplit.modify {remove|\|}
|
||
index_showsplit.modify {remove|\}
|
||
index_showsplit.modify {substring(type=regex)|"<div class=\"calendarStartTime\"[^@]*<\/div><\/div>"}
|
||
index_showsplit.modify {replace|</div></div>|</div></div>\|}
|
||
*
|
||
index_temp_2.modify {calculate(format=F0 type=element)|'index_showsplit' #}
|
||
loop {('index_temp_2' > "0")|end}
|
||
index_temp_3.modify {substring(type=element)|'index_showsplit' 'index_temp_2' 1}
|
||
index_temp_3.modify {clear(not~ "calendarcellRow")}
|
||
index_temp_4.modify {addstart('index_temp_3' not "")|'index_temp_3'##}
|
||
index_temp_2.modify {calculate(format=F0)|1 -}
|
||
end_loop
|
||
index_showsplit.modify {clear}
|
||
index_showsplit.modify {addstart|'index_temp_4'}
|
||
index_showsplit.modify {replace|##|\|}
|
||
end_scope
|
||
*
|
||
index_start.scrub {single|class="calendarStartTime">||</div>|</div>}
|
||
index_title.scrub {single|class="calendarProgTitle">||</div>|</div>}
|
||
index_title.modify {cleanup}
|
||
*
|
||
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
||
**
|
||
** @auto_xml_channel_start
|
||
*index_site_id.scrub {|}
|
||
*index_site_id.modify {set|kombat-sport}
|
||
*index_site_channel.modify {set|Kombat Sport}
|
||
** @auto_xml_channel_end
|