**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: cinemax.tv * @MinSWversion: * @Revision 0 - [07/03/2016] 1NSdbZVbpZDX * - creation * @Remarks: * @header_end **------------------------------------------------------------------------------------------------ site {url=cinemax.tv|timezone=UTC-04:00|maxdays=31|cultureinfo=en-GB|charset=iso-8859-1|titlematchfactor=90|nopageoverlaps} *site {ratingsystem=ES|episodesystem=onscreen|grabengine=|firstshow=0|firstday=0000000} urldate.format {datestring|MM/dd/yyyy} url_index{url |http://##COUNTRY##.cinemax.tv/ajax.grid/?pid=##pid##&cul=##cul##&sid=##sid##&zoh=&fecha=|urldate|} url_index.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the index pages scope.range {(urlindex)|end} index_temp_1.modify {substring(type=regex)|'config_site_id' "COUNTRY:([^,]*)"} url_index.modify {replace |##COUNTRY##|'index_temp_1'} index_temp_1.modify {substring(type=regex)|'config_site_id' "pid:([^,]*)"} url_index.modify {replace|##pid##|'index_temp_1'} index_temp_1.modify {substring(type=regex)|'config_site_id' "cul:([^,]*)"} url_index.modify {replace|##cul##|'index_temp_1'} index_temp_1.modify {substring(type=regex)|'config_site_id' "sid:([^,]*)"} url_index.modify {replace|##sid##|'index_temp_1'} end_scope index_showsplit.scrub {multi |||||} *index_urlchannellogo {url| } scope.range {(indexshowdetails)|end} *http://br.cinemax.tv/ajax.sinopsisgrid/?prog=TTL600767&cul=pt&bar=0 index_temp_2.scrub {single |"togleSinopsis|','|', '|;">} index_temp_3.modify {substring(type=regex)|'config_site_id' "COUNTRY:([^,]*)"} *for urlshow index_variable_element.modify {set |http://'index_temp_3'.cinemax.tv/movie/'index_temp_2'/} index_urlshow.modify {set |'index_variable_element'} index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the detail pages end_scope scope.range {(showdetails)|end} title.scrub {single | Cinemax|\| ||} titleoriginal.scrub {single |sinopsisTituloO">|||} subtitle.scrub {single|sinopsisTagline">|||} description.scrub {single |sinopsisTxt">||

|} description.modify {replace |”|"} description.modify {replace |“|"} description.modify {replace |’|'} *description.modify {replace |’s|'s} director.scrub {regex ||(?:>Dir.+?\n\s).+?>(.*?)<||} showicon.scrub {single |data-interchange="[||,|} actor.scrub {single (separator=", ")|Elenco|">||} *for Latam channel actor.scrub {single (separator=", ")|Cast|">||} *for Eng channel *presenter.scrub {single|} *producer.scrub {single|} *writer.scrub {single|} *composer.scrub {single|} *rating.scrub {multi|} *ratingicon.scrub {multi|} category.scrub {regex ||(?:prod.+?)\d{4}(.*?)<||} *for Latam channel category.scrub {regex ||(?:Prod.+?)\d{4}(.*?)<||} *for Eng channel category.modify {remove | / } productiondate.scrub {regex ||(?:prod.+?)(\d{4})||} *for Latam channel productiondate.scrub {regex ||(?:Prod.+?)(\d{4})||} *for Eng channel *starrating.scrub {single|} *episode.scrub {single|} *premiere.scrub {single|} *previousshown.scrub {single|} end_scope * operations: ** ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### COUNTRY FILE CREATION (only to create the xxx_country.xml file) ** ** @auto_xml_country_start *url_index {url |http://us.cinemax.tv/} *index_site_channel.scrub {multi |dropdown">|?cc=1">||} *index_site_channel.modify {addstart |Cinemax (} *index_site_channel.modify {addend |)} *index_site_id.scrub {multi |dropdown">|"http://|.cinemax.tv/?cc=1|} *index_site_id.modify {addstart|COUNTRY:} *scope.range {(channellist)|end} *index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")} *end_scope ** @auto_xml_country_end ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** * @auto_xml_channel_start scope.range {(urlindex)|end} index_temp_1.modify {substring(type=regex)|'config_site_id' "COUNTRY:([^,]*)"} url_index.modify {replace|##COUNTRY##|'index_temp_1'} end_scope url_index{url |http://##COUNTRY##.cinemax.tv/schedule} index_site_channel.scrub {single |var pn='||';|} index_site_channel.modify {addstart |Cinemax (} index_site_channel.modify {addend |)} index_site_id.scrub{single|####||####} scope.range {(channellist)|end} index_temp_1.modify {substring(type=regex)|'config_site_id' "COUNTRY:([^,]*)"} index_temp_2.scrub {regex ||(?:LoadX\(\'\/ajax.grid\/\?)(.*?)(?:&zoh.+?)||} index_temp_2.modify {replace |=|:} index_temp_2.modify {replace |&|,} index_site_id.modify {addstart|COUNTRY:'index_temp_1','index_temp_2'} index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")} end_scope * @auto_xml_channel_end