This commit is contained in:
freearhey
2021-03-09 22:46:37 +03:00
commit a597b11307
1377 changed files with 173563 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: invision.com.sa
* @MinSWversion: 1.1.1/56.25
* @Revision 0 - [23/06/2016] Blackbear199
* - creation
* @Remarks:
* @header_end
**------------------------------------------------------------------------------------------------
site {url=invision.com.sa|timezone=UTC|maxdays=3|cultureinfo=en-GB|charset=UTF-8|titlematchfactor=90}
site {ratingsystem=GB|episodesystem=onscreen}
*
url_index{url|http://static.invision.com.sa/static/content/epg_jsons/##date##/epg_##page##.json}
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
urldate.format {datestring|dd-MM-yyyy}
*
scope.range{(urlindex)|end}
index_variable_element.modify {calculate(format=date,unix)|'urldate'}
index_temp_1.modify {set|'config_site_id'}
index_temp_2.modify {substring(type=regex)|'index_temp_1' "##page=(\d+)"}
index_temp_1.modify {remove|##page='index_temp_2'}
url_index.modify {replace|##date##|'index_variable_element'}
url_index.modify {replace|##page##|'index_temp_2'}
end_scope
*
index_variable_element.modify {clear}
index_variable_element.modify {substring(type=regex)|'config_site_id' "^(.+?)##"}
index_showsplit.scrub {regex||\{"cid": "'index_variable_element'".+?\}\]\}\}||}
index_showsplit.modify {substring(type=regex)|"\{\"pid\":.+?\}"}
*
scope.range{(indexshowdetails)|end}
index_start.scrub {single|"s": "||"|"}
index_stop.scrub {single|"e": "||"|"}
*
* ----- english title and description -----------
index_title.scrub {single|"te": "||"|"}
index_description.scrub {single|"de": "||"|"}
* -----------------------------------------------
*
* ----- arabic title and description ------------
*index_title.scrub {single|"ta": "||"|"}
*index_description.scrub {single|"da": "||"|"}
* -----------------------------------------------
*
* - both english and arabic title and description -
*index_title.scrub {regex||"t[ae]": "(.+?)"||}
*index_description.scrub {regex||"d[ae]": "(.+?)"||}
* -----------------------------------------------
end_scope
*
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
**
** @auto_xml_channel_start
*url_index{url|http://static.invision.com.sa/static/content/epg_jsons/##date##/epg_index.js}
*url_index.modify {replace(scope=urlindex)|##date##|'index_variable_element'}
*
*index_site_id.scrub {regex||\{"cid": "(\d+","cn": "[^\"]*","cna": "[^\"]*","p": "\d+)",||}
*index_site_id.modify {replace(type=regex)|"\d+(","cn": ".+?","cna": ".+?","p": ")\d+"|##page=}
*---- enable english or arabic names -------------------------------------------------
*index_site_channel.scrub {regex||,"cn": "(.+?)",||} *---------english, enable only 1
*index_site_channel.scrub {regex||,"cna": "(.+?)",||} *--------arabic, enable only 1
*-------------------------------------------------------------------------------------
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
** @auto_xml_channel_end