49 lines
2.4 KiB
INI
Executable File
49 lines
2.4 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
||
* @header_start
|
||
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
||
* @Site: telecom.kz
|
||
* @MinSWversion: 1.1.1/54
|
||
* @Revision 0 - [18/05/2016] Blackbear199
|
||
* - creation
|
||
* @Remarks:
|
||
* @header_end
|
||
**------------------------------------------------------------------------------------------------
|
||
site {url=telecom.kz|timezone=UTC+06:00|maxdays=6|cultureinfo=ru-RU|charset=UTF-8|titlematchfactor=90}
|
||
site {ratingsystem=RU|episodesystem=onscreen|firstshow=2}
|
||
url_index{url(debug)|http://telecom.kz/ru/ajax/services/get_info_channel}
|
||
urldate.format {list|{datestring|dddd", "dd"."MM}
|
||
urldate.modify {cleanup(scope=urlindex style=urlencode)}
|
||
*
|
||
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=value_id='channel'&day=%0A++++++++++++++++++++++++++++++++++++++++++++'urldate'%0A++++++++++++++++++++++++++++++++++++}
|
||
*
|
||
index_showsplit.scrub {multi|<table class=\"sch-channel-table\">||<\/table>|</table>}
|
||
index_showsplit.modify {cleanup(debug style=jsondecode)}
|
||
index_showsplit.modify {substring(debug type=regex)|"<tr\s.+?<\/tr>"}
|
||
*
|
||
index_urlchannellogo {url||<img src=\"||\">|\">}
|
||
index_urlchannellogo.modify {remove|\}
|
||
*
|
||
index_start.scrub {regex||<td>(\d{2}:\d{2})\s\d{2}:\d{2}</td>||}
|
||
*index_stop.scrub {regex||<td>\d{2}:\d{2}\s(\d{2}:\d{2})</td>||}
|
||
index_title.scrub {multi(includeblock=1)|<td>||</td>|</td>}
|
||
*
|
||
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
||
**
|
||
** @auto_xml_channel_start
|
||
*
|
||
*url_index{url|http://telecom.kz/ru/ajax/services/get_channel}
|
||
*url_index.headers {postdata=value_id='subpage'&packchannel_id=1}
|
||
*subpage.format {list|1|2|3|4|5|6|7|8|9|10}
|
||
*index_site_id.scrub {|}
|
||
*index_temp_9.scrub {multi||||}
|
||
*index_temp_9.modify {cleanup(style=jsondecode)}
|
||
*index_site_id.modify {substring(type=regex)|'index_temp_9' "\"id\":(.+?),"}
|
||
*index_site_channel.modify {substring(type=regex)|'index_temp_9' "\"name\":\"(.*?)\"\}"}
|
||
** @auto_xml_channel_end
|