Init
This commit is contained in:
91
siteini.pack/India/startv.com.ini
Executable file
91
siteini.pack/India/startv.com.ini
Executable file
@@ -0,0 +1,91 @@
|
||||
**------------------------------------------------------------------------------------------------
|
||||
* @header_start
|
||||
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
||||
* @Site: startv.com
|
||||
* @MinSWversion: 1.1.1/56.25
|
||||
* @Revision 0 - [16/06/2016] Blackbear199
|
||||
* - creation
|
||||
* @Remarks:
|
||||
* @header_end
|
||||
**------------------------------------------------------------------------------------------------
|
||||
site {url=startv.com|timezone=Asia/Calcutta|maxdays=7|cultureinfo=en-GB|charset=UTF-8|titlematchfactor=90}
|
||||
site {ratingsystem=GB|episodesystem=onscreen}
|
||||
url_index{url|http://tvguide.startv.com/TvGuide/GetTvGuideSchedule}
|
||||
urldate.format {datestring|yyyyMMdd}
|
||||
*
|
||||
url_index.headers {method=POST}
|
||||
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
|
||||
url_index.headers {accept=*/*}
|
||||
url_index.headers {contenttype=application/json; charset=utf-8}
|
||||
url_index.headers {postdata={'Channels':''channel'','Start':''urldate'0000'}}
|
||||
*
|
||||
index_urlchannellogo {url(scope=datelogo)||\"channellogourl\": \"||\"|\"}
|
||||
*
|
||||
scope.range{(splitindex)|end}
|
||||
index_showsplit.scrub {multi||||}
|
||||
index_showsplit.modify {remove|\}
|
||||
index_showsplit.modify {substring(type=regex)|"\{\"programmeid\".+?\}"}
|
||||
end_scope
|
||||
*
|
||||
scope.range{(indexshowdetails)|end}
|
||||
index_start.scrub {single(pattern="yyyyMMddHHmm")|"start":"||"|"}
|
||||
index_stop.scrub {single(pattern="yyyyMMddHHmm")|"stop":"||"|"}
|
||||
index_title.scrub {single|"title":"||",|",}
|
||||
index_subtitle.scrub {single|"sub-title":"||"|"}
|
||||
index_description.scrub {single|"desc":"||",|",}
|
||||
index_category.scrub {single|"subgenre":"||"|"}
|
||||
index_showicon.scrub {single|"programmeurl":"||"|"}
|
||||
*
|
||||
index_episode.scrub {single|"episode-num":"||"|"}
|
||||
index_episode.modify {addstart('index_episode' not "")|E}
|
||||
*
|
||||
index_temp_1.scrub {single|"programmeid":"||"|"}
|
||||
index_temp_2.scrub {single|"channelid":"||"|"}
|
||||
index_temp_3.modify {calculate(format=date,yyyyMMdd)|'urldate'}
|
||||
index_temp_4.modify {set|'config_site_id'}
|
||||
index_variable_element.modify {set|{\'pid\':\''index_temp_1'\',\'cid\':\''index_temp_2'\',\'start\':\''index_temp_3'0000\',\'chnlName\':\''index_temp_4'\'}}
|
||||
*
|
||||
index_title.modify {cleanup}
|
||||
index_subtitle.modify {cleanup}
|
||||
index_description.modify {cleanup}
|
||||
index_category.modify {cleanup}
|
||||
end_scope
|
||||
*
|
||||
index_urlshow.modify {addstart(debug)|http://tvguide.startv.com/TvGuide/GetProgramDetails}
|
||||
*
|
||||
index_urlshow.headers {method=POST}
|
||||
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
|
||||
index_urlshow.headers {accept=*/*}
|
||||
index_urlshow.headers {contenttype=application/json; charset=utf-8}
|
||||
index_urlshow.headers {postdata='index_variable_element'}
|
||||
*
|
||||
scope.range{(showdetails)|end}
|
||||
title.scrub {single|\"programmename\": \"||\",|\",}
|
||||
*description.scrub {single|\"synopsis\": \"||\",|\",} *general description
|
||||
director.scrub {single(separator=",")|\"director\": \"|\|"|\"}
|
||||
actor.scrub {single(separator=",")|\"actor\": \"||\"|\"}
|
||||
category.scrub {single| \"genre\": \"||\"|\"}
|
||||
productiondate.scrub {single|\"productionyear\": \"||\"|\"}
|
||||
productiondate.modify {clear("0")}
|
||||
*
|
||||
title.modify {cleanup}
|
||||
subtitle.modify {cleanup}
|
||||
description.modify {cleanup}
|
||||
director.modify {cleanup}
|
||||
actor.modify {cleanup}
|
||||
category.modify {cleanup}
|
||||
end_scope
|
||||
*
|
||||
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||||
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
||||
**
|
||||
*
|
||||
* disable url_index.headers {postdata= line above
|
||||
*
|
||||
** @auto_xml_channel_start
|
||||
*url_index{url|http://tvguide.startv.com/TvGuide/GetChannelResult}
|
||||
*url_index.headers {postdata={'Genre':''subpage''}}
|
||||
*subpage.format {list|Bengali|English Entertainment|Hindi Entertainment|Hindi Movies|Infotainment|Kannada|Kids|Malayalam|Marathi|Movies|Music|Sports|Tamil|Telugu}
|
||||
*index_site_id.scrub {multi(separator=",")|\"channelnames\": \"||\"|\"}
|
||||
*index_site_channel.scrub {multi(separator=",")|\"channelnames\": \"||\"|\"}
|
||||
** @auto_xml_channel_end
|
||||
Reference in New Issue
Block a user