81 lines
4.8 KiB
INI
Executable File
81 lines
4.8 KiB
INI
Executable File
**------------------------------------------------------------------------------------------------
|
|
* @header_start
|
|
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
|
|
* @Site: svt.se
|
|
* @MinSWversion: V0
|
|
* none
|
|
* @Revision 4 - [26/04/2016] Blackbear199
|
|
* site change
|
|
* @Revision 3 - [10/11/2012] Jan van Straaten
|
|
* site change
|
|
* @Revision 2 - []
|
|
* added director, removes episode, actor and director from description
|
|
* @Revision 1 - []
|
|
* small change in description
|
|
* @Remarks:
|
|
* none
|
|
* @header_end
|
|
**------------------------------------------------------------------------------------------------
|
|
|
|
site {url=svt.se|timezone=UTC+01:00|maxdays=21|cultureinfo=sv-SE|charset=utf-8|titlematchfactor=90|episodesystem=onscreen|subtitlestype=teletext}
|
|
url_index{url()|http://svt.se/tv-tabla/|channel|/|urldate}
|
|
*http://www.svt.se/tv-tabla/SVT1/2012-11-13
|
|
urldate.format {datestring|yyyy-MM-dd}
|
|
index_urlshow {url|}
|
|
*
|
|
index_showsplit.scrub {multi|<tr class="svtTablaFuture||</tr>|</tr>}
|
|
index_start.scrub {single(separator="- " include=first)|<td class="svtTablaTime">||</td>|</td>}
|
|
index_stop.scrub {single(separator="- " exclude=first)|<td class="svtTablaTime">||</td>|</td>} * some shows have a stop time that is different from next start
|
|
index_title.scrub {single|<h4 class="svtLink-hover svtTablaHeading">||</h4>|</h4>}
|
|
index_description.scrub {single |<div class="svtTablaContent-Description">|class="svtXMargin-Bottom-10px">|</p>|</div>}
|
|
index_episode.scrub {single (separator="."":" include="Del ")|<div class="svtTablaContent-Description">|class="svtXMargin-Bottom-10px">|</p>|</div>}
|
|
index_presenter.scrub {single (separator="." include="Programledare: ""Programledare ")|<div class="svtTablaContent-Description">|<p>|</p>|</div>}
|
|
index_temp_1.scrub {multi(separator=" " include=first2)|<div class="svtTablaContent-Description">|Programledaren |</p>|</td>}
|
|
index_temp_2.scrub {single|<div class="svtTablaContent-Description">|rollerna:|.|</td>} * actor
|
|
index_director.scrub {multi(separator=", "" och ")|<div class="svtTablaContent-Description">|Regi:|.|</td>}
|
|
index_productiondate.scrub {single|<div class="svtTablaContent-Description">|class="svtXMargin-Bottom-10px">|</p>|</div>}
|
|
index_videoquality.scrub {single(include="HD")|<div class="svtTablaContent-Meta svtXMargin-Bottom-10px">|<span>|</span>|</div>}
|
|
index_videoaspect.scrub {single(include="4:3""16:9")|<div class="svtTablaContent-Meta svtXMargin-Bottom-10px">|<span>|</span>|</div>}
|
|
index_subtitles.scrub {single(include="Textat")|<div class="svtTablaContent-Meta svtXMargin-Bottom-10px">|<p>|</p>|</div>}
|
|
*
|
|
* operations:
|
|
scope.range {(indexshowdetails)|end}
|
|
index_start.modify {replace|.|:}
|
|
index_stop.modify {replace|.|:}
|
|
index_title.modify {cleanup(tags="<"">")}
|
|
index_presenter.modify {replace| och |\|}
|
|
index_temp_2.modify {addend|##}
|
|
index_temp_2.modify {remove| m##}
|
|
index_temp_2.modify {remove| mfl##}
|
|
index_temp_2.modify {remove|##}
|
|
index_temp_2.modify {replace| och |\|}
|
|
index_temp_2.modify {replace|, |\|}
|
|
index_actor.modify {addstart|'index_temp_2'}
|
|
index_description.modify {remove('index_episode' not "")|'index_episode'.}
|
|
index_description.modify {remove('index_presenter' not "")|'{single (separator="." include="Programledare: ""Programledare ")|<div class="svtTablaContent-Description">|<p>|</p>|</td>}'.} * remove presenter
|
|
index_description.modify {remove('index_temp_2' not "")|I rollerna: '{single|<div class="svtTablaContent-Description">|rollerna:|.|</div>}'.fl} * remove actor
|
|
index_description.modify {remove('index_temp_2' not "")|I rollerna: '{single|<div class="svtTablaContent-Description">|rollerna:|.|</div>}'.} * remove actor
|
|
index_description.modify {remove('index_director' not "")|Regi: '{multi|<div class="svtTablaContent-Description">|Regi:|.|</div>}'.} * remove directer
|
|
index_description.modify {cleanup}
|
|
index_episode.modify {cleanup}
|
|
index_episode.modify {remove|.}
|
|
index_presenter.modify {remove|Programledare }
|
|
index_presenter.modify {remove|Programledare: }
|
|
index_presenter.modify {remove|är }
|
|
index_presenter.modify {remove|.}
|
|
index_temp_1.modify {replace|\|| }
|
|
index_presenter.modify {addend(null)|'index_temp_1'}
|
|
index_actor.modify {remove|m.fl.}
|
|
index_description.modify {addstart(null)|inga Detaljer}
|
|
index_videoquality.modify {replace(~ "HD")|'index_videoquality'|HD}
|
|
index_videoaspect.modify {replace(~ "4:3")|'index_videoaspect'|4:3}
|
|
index_subtitles.modify {replace(not "")|'index_subtitles'|true}
|
|
end_scope
|
|
*
|
|
* enable the following two lines to create a channel list file:
|
|
*index_url {url|http://www.svt.se/tv-tabla/}
|
|
*index_site_channel.scrub {multi|<h3|title="|">|<span }
|
|
*index_site_id.scrub {multi|<h3|href="http://www.svt.se/tv-tabla/|"|<span }
|
|
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
|
|
*
|