102 lines
4.9 KiB
INI
Executable File
102 lines
4.9 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
|
* @header_start
|
|
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
|
* @Site: cinemagia.ro
|
|
* @MinSWversion: V1.57
|
|
* @Revision 2 - [16/04/2019] Znuff
|
|
* - Revert to short synopsis (not all shows have a long one)
|
|
* - Fixed stations logo
|
|
* @Revision 1 - [14/02/2019] Znuff
|
|
* - Moved everything to https://
|
|
* - Swapped to full synopsis
|
|
* @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|https://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|<td class="container_events">|<tr>|</tr>|</tbody>}
|
|
*
|
|
scope.range{(indexshowdetails)|end}
|
|
index_temp_1.scrub {single|<span class="small">||</span>|</span>}
|
|
index_urlshow {url||<a href="||"|"}
|
|
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
|
|
*
|
|
index_urlsubdetail.modify {addstart|'index_urlshow'distributie/}
|
|
index_urlsubdetail.headers {customheader=Accept-Encoding=gzip,deflate}
|
|
*
|
|
index_urlchannellogo.modify {addstart|https://static.cinemagia.ro/img/tv_station/'config_site_id'.jpg}
|
|
*
|
|
index_start.scrub {single|<td class="ora"">|<div>|</div>|</td>}
|
|
index_title.scrub {single|<div class="title">||</div>|</div>}
|
|
index_description.modify {addstart('index_urlshow' "")|'index_temp_1'}
|
|
index_rating.scrub {single|<div class="cna">||</div>|</div>}
|
|
*
|
|
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|<h2 class="title_1 mb15">||</h2>|</h2>}
|
|
titleoriginal.scrub {single(lang=en)|<h1 class="inline pr2">|">|</a>|</h1>}
|
|
description.scrub {single|<div class="ml15" id="short_body_sinopsis">||</div>|</div>}
|
|
description.scrub {single|<div class="mt10">|<div class="ml15">|</div>|</div>}
|
|
category.scrub {multi|<div id="movieGenreUserChoiceResults">|<span>|</span>|</ul>}
|
|
productiondate.scrub {regex||<meta property="og:title" content=".*?\((\d{4})\)"||}
|
|
country.scrub {single(separator=", ")|<h3>Ţara</h3>|<span>|</span>|</div>}
|
|
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)|<h2 class="mb10">Regia</h2>|<td>|</td>|</table>}
|
|
subdetail_director.scrub {multi(max=1 include="Regizor")|<h2 class="mb10">Echipa</h2>|<tr>|</tr>|</table>}
|
|
subdetail_actor.scrub {multi(max=5)|<h2 class="mb10">Distributia</h2>|<td style="width:300px"|</td>|</table>}
|
|
subdetail_producer.scrub {multi(max=1 include="producător")|<h2 class="mb10">Echipa</h2>|<tr>|</tr>|</table>}
|
|
subdetail_producer.scrub {multi(max=1 include="coproducator")|<h2 class="mb10">Echipa</h2>|<tr>|</tr>|</table>}
|
|
subdetail_writer.scrub {multi(max=1 include="scriitor")|<h2 class="mb10">Echipa</h2>|<tr>|</tr>|</table>}
|
|
subdetail_composer.scrub {multi(max=1 include="muzica")|<h2 class="mb10">Echipa</h2>|<tr>|</tr>|</table>}
|
|
*
|
|
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|https://www.cinemagia.ro/program-tv/}
|
|
*index_site_id.scrub {multi|<li class="station-container">|<a href="https://www.cinemagia.ro/program-tv/|/"|</li>}
|
|
*index_site_channel.scrub {multi|<li class="station-container">|"station-link">|</a>|</li>}
|
|
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
|
|
** @auto_xml_channel_end
|