**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: blackflag.tv * @MinSWversion: V1.1.1/54 * @Revision 0 - [29/07/2014] Francis De Paemeleere * - creation * @Remarks: * @header_end **------------------------------------------------------------------------------------------------ site {url=blackflag.tv|timezone=America/Montreal|maxdays=14.1|cultureinfo=en-US|charset=UTF-8|titlematchfactor=90|firstshow=now} urldate.format {datestring|yyyy-MM-dd} *subpage.format {number||1|} url_index{url|https://www.google.com/calendar/feeds/blackflagpictures%40gmail.com/public/embed?ctz=America%2FMontreal&singleevents=true&start-min=##START##T00%3A00%3A00&start-max=##END##T23%3A59%3A59&max-results=1296&xsrftok=SGxNMnotdG9HV1pGekoxa09vczR0bkFISUhvOjE0MDY2MzQzNTIyNDM&alt=json} scope.range {(urlindex)|end} index_variable_element.modify {calculate(format=date,yyyy-MM-dd)|'now'} *today url_index.modify {replace|##START##|'index_variable_element'} index_temp_1.modify {addstart|'config_timespan_days':00:00} index_variable_element.modify {calculate(format=date,yyyy-MM-dd)|'index_temp_1' +} *config_timespan_days days after today url_index.modify {replace|##END##|'index_variable_element'} end_scope url_index.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the index pages index_showsplit.scrub {multi(exclude="Schedule and Showtimes for Black Flag TV")|"entry":[|"title":|||}}} scope.range {(splitindex)|end} ** sort the shows index_showsplit.modify {sort(ascending,string)} sort_by.scrub {regex(target="index_showsplit")||"startTime"\s*:\s*"([^"\\]*(?:\\.[^"\\]*)*)"||} end_scope index_start.scrub {regex||"startTime"\s*:\s*"([^"\\]*(?:\\.[^"\\]*)*)"||} index_stop.scrub {regex||"endTime"\s*:\s*"([^"\\]*(?:\\.[^"\\]*)*)"||} index_title.scrub {regex||^.*?"\$t"\s*:\s*"([^"\\]*(?:\\.[^"\\]*)*)"||} index_description.scrub {regex||"content".*?"\$t"\s*:\s*"([^"\\]*(?:\\.[^"\\]*)*)"||} index_start.modify {substring(type=regex)|\d{4}-\d{2}-\d{2}T(\d{2}:\d{2}):\d{2}} index_stop.modify {substring(type=regex)|\d{4}-\d{2}-\d{2}T(\d{2}:\d{2}):\d{2}} index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the detail pages ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *index_site_channel.scrub {multi|} *index_site_id.scrub {multi|} *scope.range {(channellist)|end} *index_site_channel.modify {clear} *index_site_id.modify {clear} *index_site_id.modify {addstart|blackflagtv} *index_site_channel.modify {addstart|Black Flag.TV} *end_scope ** @auto_xml_channel_end