Files
epg/siteini.pack/UK/theguardian.com.ini
freearhey a597b11307 Init
2021-03-09 22:46:37 +03:00

82 lines
4.4 KiB
INI
Executable File

**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: theguardian.com
* @MinSWversion: V0
* none
* @Revision 4 - [15/08/2013] Francis De Paemeleere
* adjust to new server (tvlistings.guardian.co.uk -> tvlistings.theguardian.com)
* @Revision 3 - [23/03/2011] Jan
* Simplification of the removal of () data from the actors
* @Revision 2 - [] Quake505
* (lots of changes, added new elements with Beta 7)
* @Revision 1 - [] Quake505
* (first version, Channel list not working correctly)
* @Remarks:
* The Guardian site can block your IP for a short period.
* @header_end
**------------------------------------------------------------------------------------------------
site {url=theguardian.com|timezone=UTC+00:00|maxdays=10|cultureinfo=en-GB|charset=ISO-8859-1|episodesystem=onscreen}
url_index{url|http://tvlistings.theguardian.com/text-only/?tvgChannelName=|channel|&tvgBroadcaster=UKSkyCable&tvgRegion=London&tvgDayOffset=|urldate|f}
urldate.format {daycounter|0}
index_showsplit.scrub {multi|<div class="tvg_channelname">|<span class="tvg_show"|</div></div>|<script type="text/javascript">}
index_start.scrub {single|tvg_show_start|>|</span>|</span>}
index_title.scrub {single|tvg_show_title|>|</span>|</span>}
index_subtitle.scrub {single(separator=": " include=last)|tvg_show_episode_title|>|</div>|</div>}
index_description.scrub {single(separator="Starring""starring"", with"", With" include=first)|tvg_show_description|>|<span|<span}
index_category.scrub {single(separator="/")|tvg_show_category|>|</span|</span}
index_episode.scrub {single(separator=":" include=first)|tvg_show_episode_title|Series|</div>|</div>}
index_actor.scrub {single(separator=","" and "")""("|tvg_show_description|starring |<span|<span}
index_previousshown.scrub {single(separator=" " include="REP")|<span class="tvg_show_flags|">[|]|</span>}
index_premiere.scrub {single(separator=" " include="Live")|<span class="tvg_show_title|">|<|/span>}
index_subtitles.scrub {single(separator=" " include="SUB")|<span class="tvg_show_flags|">[|]|</span>}
*
index_temp_3.scrub {single(include="Part")|tvg_show_description|>|.|<span}
*
* Mods
*
index_temp_1.scrub {single(separator=","" and ")|tvg_show_description|, with |<span|<span}
index_temp_2.modify {calculate(format=F0)|'index_temp_1' " " #}
index_temp_2.modify {calculate(format=F0)|15 /}
index_actor.modify {addstart(null)|'{single(separator=","" and ")|tvg_show_description|voices of |<span|<span}'}
index_actor.modify {addstart(null)|'{single(separator=","" and ")|tvg_show_description| voice of |<span|<span}'}
index_actor.modify {addstart('index_temp_2' "0" null)|'index_temp_1'}
index_actor.modify {remove|informed analysis}
index_actor.modify {remove| with }
index_actor.modify {remove|the voice of }
index_episode.modify {replace|. Episode |E}
index_episode.modify {addstart(notnull|S}
index_previousshown.modify {replace(== "REP")|'index_previousshown'|true}
index_premiere.modify {replace(== "Live")|'index_premiere'|true}
index_subtitles.modify {replace(== "SUB")|'index_subtitles'|true}
index_description.modify {remove|'index_temp_3'.}
index_temp_3.modify {replace|Part|P}
index_temp_3.modify {replace|one|1}
index_temp_3.modify {replace|two|2}
index_temp_3.modify {replace|three|3}
index_temp_3.modify {replace|four|4}
index_temp_3.modify {replace|five|5}
index_temp_3.modify {replace| of |/}
index_temp_3.modify {replace| |}
index_episode.modify {addend('index_temp_3' not ""|'index_temp_3'}
index_actor.modify {remove|'{multi(separator=","" and ")|tvg_show_description|(|)|<span}'}
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
**
** @auto_xml_channel_start
* --The channel list has lines with site_id="PA", these should be removed
* --lines with site_id="" need to be changed with site_id="PA%7C%7C" and the channel name.
* ----For example site_id="" for Sky Action HD should be changed to site_id="PA%7C%7CSky Action HD"
*
*index_site_id.scrub {multi()|="tvgChannelName">|value="|"|</form><div }
*index_site_channel.scrub {multi()|="tvgChannelName">|">|</option|</form><div }
*scope.range {(channellist)|end}
*index_site_id.modify {cleanup(removeduplicates=equal,100 link="index_site_channel")}
*end_scope
** @auto_xml_channel_end