**------------------------------------------------------------------------------------------------ * @header_start * WebGrab+Plus ini for grabbing EPG data from TvGuide websites * @Site: cinemagia.ro * @MinSWversion: V1.57.1 * @Revision 0 - [31/08/2016] Blackbear199 * - creation * @Remarks: * @header_end **------------------------------------------------------------------------------------------------ site {url=cinemagia.ro|timezone=Europe/Bucharest|maxdays=7.1|cultureinfo=ro-RO|charset=UTF-8|titlematchfactor=90} site {ratingsystem=RO|episodesystem=onscreen} * url_index{url|http://www.cinemagia.ro/program-tv/post/|channel|/} urldate.format {datestring|yyyy-MM-dd} * index_variable_element.modify {set|'config_site_id'} index_showsplit.scrub {multi||||} * scope.range{(indexshowdetails)|end} index_temp_1.scrub {single||||} index_urlshow {url|||
|
|} index_title.scrub {single|
||
|} index_description.modify {addstart('index_urlshow' "")|'index_temp_1'} index_rating.scrub {single|
||
|} * index_title.modify {cleanup(tags="<"">")} index_title.modify {cleanup} index_title.modify {remove| - serial} index_title.modify {remove| (R)} index_description.modify {cleanup)} index_rating.modify {cleanup(style=upper)} end_scope * scope.range{(showdetails)|end} title.scrub {single|

||

|} titleoriginal.scrub {single|

|">||

} description.scrub {single|
||
|} description.scrub {single|
|
|
|
} category.scrub {multi|
|||} productiondate.scrub {regex||Ţara|||
} starrating.scrub {regex||>(IMDB: \d+\.\d+)<\/a>||} *showicon.scrub {single|"image":{"@type":|"url":"|"|}} * titleoriginal.modify {clear('title')} * description.modify {cleanup(tags="<"">")} description.modify {cleanup} * country.modify {cleanup(tags="<"">")} starrating.modify {substring(type=element)|0 1} showicon.modify {remove|\} end_scope * scope.range{(showsubdetails)|end} subdetail_director.scrub {multi(max=1)|

Regia

|||} subdetail_director.scrub {multi(max=1 include="Regizor")|

Echipa

|||} subdetail_actor.scrub {multi(max=5)|

Distributia

||} subdetail_producer.scrub {multi(max=1 include="producător")|

Echipa

|||} subdetail_producer.scrub {multi(max=1 include="coproducator")|

Echipa

|||} subdetail_writer.scrub {multi(max=1 include="scriitor")|

Echipa

|||} subdetail_composer.scrub {multi(max=1 include="muzica")|

Echipa

|||} * subdetail_director.modify {cleanup(tags="<"">")} subdetail_director.modify {remove|Regizor} subdetail_actor.modify {remove(type=regex)|^>} subdetail_actor.modify {remove(type=regex)|^class="last">} subdetail_actor.modify {cleanup(tags="<"">")} subdetail_producer.modify {cleanup(tags="<"">")} subdetail_producer.modify {remove|producător executiv} subdetail_producer.modify {remove|producător} subdetail_producer.modify {remove|coproducator} subdetail_writer.modify {cleanup(tags="<"">")} subdetail_writer.modify {remove|scriitor} subdetail_composer.modify {cleanup(tags="<"">")} subdetail_composer.modify {remove|muzica} end_scope ** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file) ** ** @auto_xml_channel_start *url_index {url|http://www.cinemagia.ro/program-tv/} *index_site_id.scrub {multi|
  • |} *index_site_channel.scrub {multi|
  • |"station-link">||
  • } *index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")} ** @auto_xml_channel_end *For classical credits - remove the next lines category.modify {cleanup(removeduplicates)} category.modify {cleanup} actor.modify {cleanup} director.modify {cleanup} actor.modify {replace|\|\||\|} description.modify {addend('director' not "" separator=", ")|\n'director'} description.modify {addend('actor' not "" separator=", ")|\n'actor'} actor.modify {clear} director.modify {clear} subtitle.modify {addstart ('titleoriginal' not "") | ('titleoriginal')} subtitle.modify {addend ('episode' not "") | ('episode')} subtitle.modify {addend ('productiondate' not "") | ('productiondate')} subtitle.modify {addstart ('category' not "") |['category'] } subtitle.modify {addend ('rating' not "") | ['rating'] } rating.modify {clear} episode.modify {clear} category.modify {clear} productiondate.modify {clear} titleoriginal.modify {clear} writer.modify {clear} producer.modify {clear} composer.modify {clear} starrating.modify {clear} rating.modify {clear} presenter.modify {clear} starrating.modify {clear} videoquality.modify {clear} videoaspect.modify {clear} index_category.modify {cleanup(removeduplicates)} index_category.modify {cleanup} index_description.modify {addend ('index_director' not "" separator=", " )|\n'index_director'} index_description.modify {addend ('index_actor' not "" separator=", " )|\n'index_actor'} index_description.modify {addend ('index_presenter' not "" separator=", " )|\n'index_presenter'} index_subtitle.modify {addstart ('index_titleoriginal' not "") | ('index_titleoriginal')} index_subtitle.modify {addend ('index_episode' not "") | ('index_episode')} index_subtitle.modify {addend ('index_productiondate' not "") | ('index_productiondate')} index_subtitle.modify {addstart ('index_category' not "") |['index_category'] } index_subtitle.modify {addend ('index_rating' not "") | ['index_rating'] } index_writer.modify {clear} index_rating.modify {clear} index_productiondate.modify {clear} index_titleoriginal.modify {clear} index_actor.modify {clear} index_director.modify {clear} index_presenter.modify {clear} index_episode.modify {clear} index_category.modify {clear} index_videoquality.modify {clear} subdetail_description.modify {addend ('subdetail_director' not "" separator=", " )|\n'subdetail_director'} subdetail_description.modify {addend ('subdetail_actor' not "" separator=", " )|\n'subdetail_actor'} subdetail_description.modify {addend ('subdetail_presenter' not "" separator=", " )|\n'subdetail_presenter'} subdetail_writer.modify {clear} subdetail_rating.modify {clear} subdetail_productiondate.modify {clear} subdetail_titleoriginal.modify {clear} subdetail_actor.modify {clear} subdetail_director.modify {clear} subdetail_presenter.modify {clear} subdetail_producer.modify {clear} subdetail_episode.modify {clear} subdetail_category.modify {clear} subdetail_videoquality.modify {clear} description.modify {substring(type=char)|'description' 0 2300} title.modify {substring(type=char)|'title' 0 80} subtitle.modify {substring(type=char)|'subtitle' 0 160} index_description.modify {substring(type=char)|'index_description' 0 2300} index_title.modify {substring(type=char)|'index_title' 0 80} index_subtitle.modify {substring(type=char)|'index_subtitle' 0 160}