mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
64 lines
3.7 KiB
INI
Executable file
64 lines
3.7 KiB
INI
Executable file
**------------------------------------------------------------------------------------------------
|
||
* @header_start
|
||
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
||
* @Site: rtbf.be
|
||
* @MinSWversion: V1.57
|
||
* @Revision 0 - [06/11/2016] Blackbear199
|
||
* - creation
|
||
* @Remarks:
|
||
* @header_end
|
||
**------------------------------------------------------------------------------------------------
|
||
site {url=rtbf.be|timezone=Europe/Brussels|maxdays=25|cultureinfo=fr-BE|charset=UTF-8|titlematchfactor=90}
|
||
site {ratingsystem=BE|episodesystem=onscreen}
|
||
*
|
||
url_index{url|http://www.rtbf.be/tv/guide-tv/grid?date=|urldate|&time=|subpage|&channel=|channel|}
|
||
url_index.headers {customheader=Accept-Encoding=gzip,deflate}
|
||
*
|
||
urldate.format {datestring|yyyy-MM-dd}
|
||
subpage.format {list|02:00|05:00|08:00|11:00|14:00|17:00|20:00|23:00}
|
||
*
|
||
index_showsplit.scrub {multi(exclude="Il n'y a pas de programme dans cette tranche horaire pour")|<ul class="list-unstyled epg-grid-show-list">|<li class="epg-grid-show-details"|</li>|</ul>}
|
||
scope.range{(splitindex)|end}
|
||
index_temp_1.modify {substring(type=regex)|'index_showsplit' "itemprop=\"startDate\" content=\"([^\"]*)\""}
|
||
index_temp_1.modify {cleanup(removeduplicates link="index_showsplit")}
|
||
index_showsplit.modify {sort(ascending,string)}
|
||
sort_by.scrub {single(target="index_showsplit")|itemprop="startDate" content="||"|"}
|
||
sort_by.modify {calculate(target="index_showsplit" format=date,unix)}
|
||
index_showsplit.modify {replace|\||#_#}
|
||
index_showsplit.modify {replace|#_##_#|#_#}
|
||
index_showsplit.modify {replace|#_#|\|}
|
||
end_scope
|
||
*
|
||
index_urlshow {url||<h3 class="epg-grid-show-details-title"|href="|"|</a>}
|
||
index_urlshow.headers {customheader=Accept-Encoding=gzip,deflate}
|
||
|
||
*index_urlchannellogo {url| }
|
||
*
|
||
index_start.scrub {regex||content="(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2})[-+]\d{2}:\d{2}"||}
|
||
index_title.scrub {single(separator=" - " include=first)|<h3 class="epg-grid-show-details-title"|js-epg-ga">|</a>|</h3>}
|
||
index_subtitle.scrub {regex||<h3 class="epg-grid-show-details-title" itemprop="name">.*?">[^-]*-\s([^<]*)</a>||}
|
||
index_category.scrub {single|<span class="epg-grid-show-type type"> - ||</span>|</span>}
|
||
*
|
||
title.scrub {single(separator=" - " include=first)|<h3 class="epg-detail-name">||</h3>|</h3>}
|
||
description.scrub {single|<ul class="list-unstyled">|<p class="">|</p>|</div>}
|
||
director.scrub {single(separator=", " includeblock="Réalisateur")|<strong>|</strong>|</li>|</ul>}
|
||
actor.scrub {single(separator=", " includeblock="Acteur/Actrice")|<strong>|</strong>|</li>|</ul>}
|
||
presenter.scrub {single(separator=", " includeblock="Journaliste""présentateur")|<strong>|</strong>|</li>|</ul>}
|
||
producer.scrub {single(separator=", " includeblock="Producteur")|<strong>|</strong>|</li>|</ul>}
|
||
writer.scrub {single(separator=", " includeblock="Scénariste")|<strong>|</strong>|</li>|</ul>}
|
||
composer.scrub {single(separator=", " includeblock="Chroniqueur""Editeur")|<strong>|</strong>|</li>|</ul>}
|
||
rating.scrub {single|<strong>Controle parental|</strong>|</li>|</ul>}
|
||
showicon.scrub {single|<img class="retina epg-detail-preview pull-left" src="||"|"}
|
||
*
|
||
title.modify {remove(type=regex)|<span>.*$}
|
||
description.modify {cleanup(tags="<"">")}
|
||
description.modify {cleanup}
|
||
*
|
||
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
||
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
|
||
**
|
||
** @auto_xml_channel_start
|
||
*url_index {url|http://www.rtbf.be/tv/guide-tv}
|
||
*index_site_id.scrub {multi(exclude=last)| Toutes les chaînes|href="http://www.rtbf.be/tv/|"|</ul>}
|
||
*index_site_channel.scrub {multi(exclude=last)| Toutes les chaînes| />|</a>|</ul>}
|
||
** @auto_xml_channel_end
|