**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: foxplay.com.mx * @MinSWversion: V2.1.5 * @Revision 0 - [29/10/2017] Blackbear199 & mat8861 * - creation * @Remarks: * @header_end **------------------------------------------------------------------------------------------------ site {url=foxplay.com.mx|timezone=UTC|maxdays=7|cultureinfo=es-MX|charset=UTF-8|titlematchfactor=90} site {ratingsystem=MX|episodesystem=onscreen} * url_index{url|https://fng-discovery-qp.foxplay.com/fox/restapi/epgGrid?apiKey=qwerty&channels=9a43a322af404763aba38a4e76c30c72&country=MX&device=webClient&entitlement=%7B%22Country%22:%22(Default+MX)%22,%22FlightStartDate%22:%22%5B%5D%22,%22FlightEndDate%22:%22%5B%5D%22%7D&language=##lang##&pageSize=1000&programEndTime=##end_time##&programStartTime=##start_time##&publicationStatus=Published} url_index.headers {customheader=Accept-Encoding=gzip,deflate} * urldate.format {datestring|yyyy-MM-dd} * scope.range{(urlindex)|end} global_temp_1.modify {calculate(format=date,java)|'urldate'} global_temp_2.modify {calculate(format=F0)|'global_temp_1' 86399999 +} global_temp_3.modify {set|eng} *available language: eng (English) - spa (Spanish) url_index.modify {replace|##start_time##|'global_temp_1'} url_index.modify {replace|##end_time##|'global_temp_2'} url_index.modify {replace|##lang##|'global_temp_3'} end_scope index_showsplit.scrub {regex||"id": "FNGSchedule.+?"extendedAttributes":||} scope.range{(splitindex)|end} index_temp_1.modify {substring(type=regex)|'index_showsplit' "\"startTime\":\s(\d+),"} index_temp_1.modify {cleanup(removeduplicates=equal,100 link="index_showsplit")} index_showsplit.modify {remove(type=element)|-1 1} index_showsplit.modify {sort(ascending,string)} sort_by.scrub {single(target="index_showsplit")|"startTime": ||,|,} sort_by.modify {calculate(target="index_showsplit" format=date,unix)} end_scope index_start.scrub {single|"startTime": ||,|,} index_title.scrub {single|"name": "||",|",} index_description.scrub {single|"description": "||",|",} index_category.scrub {single|"broadcastType": "||"|"} ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *url_index {url|https://fng-discovery-qp.foxplay.com/fox/restapi/channels?apiKey=qwerty&country=MX&device=webClient&entitlement=%7B%22Country%22:%22(Default+MX)%22,%22FlightStartDate%22:%22%5B*+TO+##start_time##%5D%22,%22FlightEndDate%22:%22%5B##end_time##+TO+*%5D%22%7D&hasEPG=true&language=spa&pageNumber=1&pageSize=1000&publicationStatus=Published} *index_site_id.scrub {multi|"id": "||",|",} *index_site_channel.scrub {multi|"updatedDateTime":|"name": "|",|],} *index_site_id.modify {cleanup(removeduplicates link="index_site_channel")} ** @auto_xml_channel_end