**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: dsmart.com.tr Turkish * @MinSWversion: V2.0 * @Revision 3 - [06/05/2017] Blackbear199 * - url change * - add p-hp method for linux users * @Revision 2 - [11/07/2016] Blackbear199 * - rewrite changed to POST * @Revision 1 - [24/02/2016] Blackbear199 * - rewrite * @Revision 0 - [24/04/2013] Jan van Straaten * - creation * @Remarks: your_remarks * @header_end **------------------------------------------------------------------------------------------------ site {url=dsmart.com.tr|timezone=UTC|maxdays=7|cultureinfo=tr-TR|charset=UTF-8|titlematchfactor=90} site {ratingsystem=TR|episodesystem=onscreen|keepindexpage} * url_index{url|https://www1.dsmart.com.tr/Content/webservice/ClientSiteWebService.asmx/getTvGuide} * windows users *url_index{url|http://127.0.0.1/dsmart_com_tr.php?date=|urldate|&reqtype=1} * linux users urldate.format {daycounter|0} * *--------------------------------------------------------------------------- * enable this section windows users *--------------------------------------------------------------------------- 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/json; charset=utf-8} url_index.headers {customheader=X-Requested-With=XMLHttpRequest} url_index.headers {postdata={DaysAfter:'urldate'}} *--------------------------------------------------------------------------- * end enable for windows section *--------------------------------------------------------------------------- * index_variable_element.modify {set|'config_site_id'} index_showsplit.scrub {multi(includeblock=""ChannelNumber":'index_variable_element'," exclude="Date(-")|{"__type":"ClientSite.Content.WebService.ClientSiteWebService+TVGuideChannel"|{"Unique|}|]}} * scope.range{(indexshowdetails)|end} index_start.scrub {single|Date(||)|)} index_title.scrub {single|"Name":"||",|",} * index_title.modify {cleanup} * index_temp_1.scrub {single|Key":"||"|"} index_urlshow.modify {addstart('index_temp_1' not "")|https://www1.dsmart.com.tr/Page/Popup/TvGuide/ProgramDetail2.aspx?cacheID='index_temp_1'&bouquetID=&TrafficKey='index_temp_1'} * windows users *index_urlshow.modify {addstart('index_temp_1' not "")|http://127.0.0.1/dsmart_com_tr.php?programid='index_temp_1'&reqtype=2} * linux users index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} end_scope * title.scrub {single|
||
|} titleoriginal.scrub {single|
||
|} description.scrub {single|
||
|
} actor.scrub {multi(separator=", ")|Oyuncular:||
|
} category.scrub {multi(separator=" / "",")|Tür:||
|
} director.scrub {multi(separator=", ")|Yönetmen:||
|
} * ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *index_site_id.scrub {multi|"ChannelNumber":||,|,} *index_site_channel.scrub {multi|TVGuideChannel","Name":"||"|"} *index_site_channel.modify {cleanup(style=unidecode)} *index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")} ** @auto_xml_channel_end