55 lines
2.7 KiB
INI
Executable File
55 lines
2.7 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
|
* @header_start
|
|
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
|
* @Site: makler.md
|
|
* @MinSWversion:
|
|
* @Revision 0 - [09/09/2015] Francis De Paemeleere
|
|
* - creation
|
|
* @Remarks:
|
|
* strange behaviour of the site. Shows of today are the same as the one for tomorrow.
|
|
* so currently this siteini is "as-is"
|
|
* also not all channels contain data
|
|
* @header_end
|
|
**------------------------------------------------------------------------------------------------
|
|
|
|
site {url=makler.md|timezone=Europe/Chisinau|maxdays=6|cultureinfo=ro|charset=UTF-8|titlematchfactor=90|nopageoverlaps|firstshow=1}
|
|
|
|
url_index{url|http://makler.md/tv/index/get-programs}
|
|
url_index.headers {method=POST|contenttype=application/x-www-form-urlencoded; charset=UTF-8}
|
|
url_index.headers {postdata='index_variable_element'}
|
|
url_index.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the index pages
|
|
url_index.headers {customheader=X-Requested-With=XMLHttpRequest}
|
|
url_index.headers {accept=application/json, text/javascript, */*; q=0.01}
|
|
|
|
scope.range {(urlindex)|end}
|
|
index_variable_element.modify {calculate(format=date,unix)|'urldate'}
|
|
index_variable_element.modify {calculate(format=date,unix)|'urldate' 00:03:00 -} * make the start time = 21:00 yesterday
|
|
index_variable_element.modify {addstart|date=}
|
|
index_variable_element.modify {addend|&period=all&ch%5B}
|
|
index_variable_element.modify {addend|'config_site_id'}
|
|
index_variable_element.modify {addend|%5D=on&group%5B4%5D=closed&group%5B1%5D=closed&group%5B3%5D=closed&group%5B2%5D=closed}
|
|
end_scope
|
|
|
|
index_showsplit.scrub {multi|<!-- tv listing -->|<li>|<\/li>|<!-- \/\/ tv listing -->}
|
|
index_showsplit.modify {cleanup(style=jsondecode)}
|
|
|
|
index_start.scrub {single|<strong>||</strong>|</strong>}
|
|
index_title.scrub {single|<span>||</span>|</span>}
|
|
|
|
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
|
**
|
|
** @auto_xml_channel_start
|
|
*url_index{url|http://makler.md/tv}
|
|
*url_index.headers {method=GET|contenttype=}
|
|
*url_index.headers {accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8}
|
|
*url_index.headers {customheader=X-Requested-With=}
|
|
*
|
|
*index_site_channel.scrub {regex||<label [^>]*for="ch\d*"[^>]*>([^<]*)</label>||}
|
|
*index_site_id.scrub {regex||<label [^>]*for="ch(\d*)"[^>]*>[^<]*</label>||}
|
|
*
|
|
*scope.range {(channellist)|end}
|
|
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
|
|
*end_scope
|
|
** @auto_xml_channel_end
|