This commit is contained in:
freearhey
2021-03-09 22:46:37 +03:00
commit a597b11307
1377 changed files with 173563 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?xml version="1.0"?>
<settings>
<!-- This is a sample of an almost "ready to go" setup
1. If required set full path for the output guide.xml
2. Add correct decription key for siteini type .EK
3. change your username and mail (used to register on the forum) and password (see license in forum profile)
4. set timespan (number of days) it start with 0 so one week = 6
5. create updated channel list setting <update>c</update> first, then set back to i or f
6. Below a setup to run an encrypted siteini and a regular one
-->
<filename>guide.xml</filename>
<mode>m n</mode>
<postprocess grab="y" run="n">rex</postprocess>
<user-agent>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36 Edg/79.0.309.71</user-agent>
<decryptkey site="cyfrowypolsat.pl.EK">AABBCC</decryptkey>
<license wg-username="rollerbar" registered-email="rollerbar@gmail.com" password="123456" />
<!-- to update license use force, example: <license wg-username="rollerbar" registered-email="rollerbar@gmail.com" password="123456">f</license> -->
<logging>on</logging>
<retry time-out="80">4</retry>
<timespan>0</timespan>
<update>f</update>
<channel update="i" site="cyfrowypolsat.pl.EK" site_id="ale-kino-plus-hd" xmltv_id="ale kino+ HD">ale kino+ HD</channel>
<channel update="i" site="sky.de" site_id="99_sky_logo_classica" xmltv_id="Classica">Classica</channel>
</settings>

37
siteini.pack/Misc/dummy.ini Executable file
View File

@@ -0,0 +1,37 @@
**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: your_site_name
* @MinSWversion: V0
* none
* @Revision 2 - [15/07/2014] Jan van Straaten
* added a choice of more than one show per day
* @Revision 1 - [21/05/2014] Jan van Straaten
* added timezone
* @Revision 0 - [22/04/2013] Jan van Straaten
* none
* @Remarks:
* A SiteIni that creates a dummy xmltv guide with one or more show every day
* @header_end
**------------------------------------------------------------------------------------------------
site {cultureinfo=en-GB|timezone=UTC+00:00|maxdays=10.1|charset=utf-8|skip=<skip>noskip</skip>|keepindexpage}
url_index {url|http://this-page-intentionally-left-blank.org/} * just an empty page
index_showsplit.scrub {single||||} * copies the html page
index_showsplit.modify {clear}
scope.range {(splitindex)|end}
*
* the shows for one day:
index_variable_element.modify {addstart|00:00-23:59##Full Day Show####} * one show per day example
*index_variable_element.modify {addstart|00:00-12:00##First show####12:00-00:00##Second show####} * 2 shows per day example
*index_variable_element.modify {addstart|00:00-06:00##Night show####6:00-12:00##Morning show####12:00-18:00##Afternoon show####18:00-00:00##Evening show####} * 4 shows per day example
*
index_showsplit.modify {addstart()|'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'}
index_showsplit.modify {replace()|####|\|} * convert to multi
end_scope
index_start.scrub {single()|||-|-}
index_stop.scrub {single()|-||#|#}
index_title.scrub {single()|##|||}
*index_start.modify {addstart|00:00}
*index_stop.modify {addstart|23:59}
index_title.modify {addstart|dummy program - }
index_description.modify {addstart|Created by WebGrab+Plus, your favorite TVguide Grabber.}

14
siteini.pack/Misc/empty.ini Executable file
View File

@@ -0,0 +1,14 @@
**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: your_site_name
* @MinSWversion: V0
* none
* @Revision 0 - [your_date] your_name
* none
* @Remarks:
* An empty SiteIni used in case no siteini is specified or left empty
* @header_end
**------------------------------------------------------------------------------------------------
site {timezone=|cultureinfo=}

51
siteini.pack/Misc/fixed.ini Executable file
View File

@@ -0,0 +1,51 @@
**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: fixed
* @MinSWversion:
* @Revision 0 - [11/12/2015] Francis De Paemeleere
* none
* @Remarks:
* A SiteIni that creates a dummy xmltv guide with one or more show every day
* Now for multiple channels and more detailed info
* @header_end
**------------------------------------------------------------------------------------------------
site {cultureinfo=en-GB|timezone=UTC|maxdays=30.1|charset=utf-8|skip=<skip>noskip</skip>|keepindexpage}
url_index {url|http://this-page-intentionally-left-blank.org/} * just an empty page
url_index.headers {customheader=Accept-Encoding=gzip,deflate} * to speedup the downloading of the index pages
index_showsplit.scrub {single||||} * copies the html page
index_showsplit.modify {clear}
scope.range {(splitindex)|end}
* the show(s) for one day:
index_variable_element.modify {addstart|'config_site_id'}
* now create 30 days
index_showsplit.modify {addstart|'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'####'index_variable_element'}
index_showsplit.modify {replace|####|\|} * convert to multi
end_scope
index_start.scrub {single|||-|-}
index_stop.scrub {single|-||#|#}
index_title.scrub {single|##title:||##|##}
index_subtitle.scrub {single|##subtitle:||##|##}
index_category.scrub {single|##category:||##|##}
index_description.scrub {single|##description:||##|##}
index_director.scrub {single|##director:||##|##}
index_actor.scrub {single|##actor:||##|##}
index_presenter.scrub {single|##presenter:||##|##}
index_writer.scrub {single|##writer:||##|##}
index_producer.scrub {single|##producer:||##|##}
index_composer.scrub {single|##composer:||##|##}
index_commentator.scrub {single|##commentator:||##|##}
* split multi elements into separate values
index_category.modify {replace|#_#|\|}
index_director.modify {replace|#_#|\|}
index_actor.modify {replace|#_#|\|}
index_presenter.modify {replace|#_#|\|}
index_writer.modify {replace|#_#|\|}
index_producer.modify {replace|#_#|\|}
index_composer.modify {replace|#_#|\|}
index_commentator.modify {replace|#_#|\|}

View File

@@ -0,0 +1,41 @@
* this siteini can create fixed channels with fixed show(s)
**************************************************************************************************
* configure your config file
**************************************************************************************************
01. in the config file define one (or more) channel(s) like below:
eg. 1 show a day:
<channel update="f" site="fixed" site_id="00:00-23:59##title:Full Day Show##subtitle:All day long##description:24h schedule##category:film#_#entertainment##presenter:me#_#myself#_#Irene####" xmltv_id="dummy001">dummy001</channel>
eg. 2 shows a day:
<channel update="f" site="fixed" site_id="00:00-12:00##title:First Show##subtitle:Half a day long##description:12h schedule (part 1)####12:00-23:59##title:Last Show##subtitle:Half a day long##description:12h schedule (part 2)" xmltv_id="dummy002">dummy002</channel>
The format of site_id is pretty simple.
a. nn:nn-nn:nn the start-stop times for this show
b. ##title:xxxxx the title of this show
. (optional) ##subtitle:xxxx the subtitle of this show
. (optional) ##description:xxxx the description of this show
. (optional) ##category:xxxx the category/categories of this show with #_# as a separator between multiple values
. (optional) ##director:xxxx the director(s) of this show with #_# as a separator between multiple values
. (optional) ##actor:xxxx the actor(s) of this show with #_# as a separator between multiple values
. (optional) ##presenter:xxxx the presenter(s) of this show with #_# as a separator between multiple values
. (optional) ##writer:xxxx the writer(s) of this show with #_# as a separator between multiple values
. (optional) ##producer:xxxx the producer(s) of this show with #_# as a separator between multiple values
. (optional) ##composer:xxxx the composer(s) of this show with #_# as a separator between multiple values
. (optional) ##commentator:xxxx the commentator(s) of this show with #_# as a separator between multiple values
z. #### closing tag for this show
You can create as many shows as you like / day. Just be sure that when you create a 1 day show, the start and end time are not the same. So 00:00-00:-00 will NOT work. Just make it 00:00-23:59.
FYI:
If you have many shows on a day, are want to have much details, the config line can become pretty long. In xml, you can split your lines easily like:
<channel update="f" site="fixed" site_id="
00:00-23:50
##title:Full Day Show
##subtitle:All day long
##description:24h schedule
####"
xmltv_id="dummy001">dummy001</channel>

View File

@@ -0,0 +1,81 @@
**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: merge-xmltv
* @MinSWversion: 1.1.1/56.02
* @Revision 4 - [19/11/2019] WGT
* @Revision 3 - [21/01/2016] Francis De Paemeleere
* - add show icon
* @Revision 2 - [21/10/2015] Francis De Paemeleere
* - speedup for large files
* @Revision 1 - [17/10/2015] Jan van Straaten
* - allows multiple xmltv input file to merge
* @Revision 0 - [09/05/2014] Jan van Straaten
* - creation
* @Remarks:
* @header_end
**------------------------------------------------------------------------------------------------
*** edit - timezone=UTC+00:00 - to the timezone for which the xmltv data is created
*** edit (optional) - cultureinfo=en-GB - to the cultureinfo of the country for which the xmltv data is created
site {url=merge-xmltv|timezone=UTC+00:00|maxdays=31.1|cultureinfo=en-GB|charset=UTF-8|titlematchfactor=90|keepindexpage}
*
*** eventually enable and adapt ratingsystem and episodesystem to your requiements
*site {ratingsystem=GB|episodesystem=onscreen}
*
*** edit - path_of_the_xmltv_file2merge.xml - to your requirements
*** more than one file2merge or just one:
*subpage.format {list|path_of_the_1st_xmltv_file2merge.xml|path_of_the_2nd_xmltv_file2merge.xml|etc}
*** example
*subpage.format {list|D:\guide-1.xml|D:\guide-2.xml}
url_index{url|file://|subpage|}
scope.range {(datelogo)|end}
index_variable_element.modify {addstart|'config_site_id'}
global_temp_1.scrub {regex||<channel [^>]*id="[^\"]*"[^>]*>.*?</channel>||}
end_scope
index_urlchannellogo.modify {substring(type=regex)|'global_temp_1' "<channel id="'index_variable_element'\">.*<icon src="([^"]*)\"\s\/>"}
index_showsplit.scrub {regex||<programme [^>]*channel=\"'index_variable_element'\"[^>]*>.*?</programme>||}
index_start.scrub {single|start="||"|>}
index_stop.scrub {single|stop="||"|>}
index_title.scrub {single|<title|>|</title>|</title>}
index_subtitle.scrub {single|<sub-title|>|</sub-title>|</sub-title>}
index_description.scrub {single|<desc|>|</desc>|</desc>}
index_actor.scrub {multi|<actor>||</actor>|</actor>}
index_director.scrub {multi|<director>||</director>|</director>}
index_writer.scrub {multi|<writer>||</writer>|</writer>}
index_producer.scrub {multi|<producer>||</producer>|</producer>}
index_presenter.scrub {multi|<presenter>||</presenter>|</presenter>}
index_productiondate.scrub {single|<year>||</year>|</year>}
index_category.scrub {multi|<category|>|</category>|</category>}
index_starrating.scrub {single|<star-rating>|<value>|</value></star-rating>}
index_episode.scrub {single|<episode-num>||</episode-num>|</episode-num>}
index_showicon.scrub {regex||<icon src=\"([^\"]*)||}
scope.range {(indexshowdetails)|end}
* extraxt times
*start="20120922004200" stop="20120922021200"
index_start.modify {substring(type=char)|8 4}
index_temp_1.modify {substring(type=char)|'index_start' 0 2} * the hours
index_start.modify {substring(type=char)|2 2} * the minutes
index_start.modify {addstart|'index_temp_1':}
index_stop.modify {substring(type=char)|8 4}
index_temp_1.modify {substring(type=char)|'index_stop' 0 2} * the hours
index_stop.modify {substring(type=char)|2 2} * the minutes
index_stop.modify {addstart|'index_temp_1':}
index_description.modify {cleanup}
end_scope
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
** @auto_xml_channel_start
*index_site_id.scrub {regex||<channel [^>]*id="[^\"]*"[^>]*>.*?</channel>||}
*scope.range {(channellist)|end}
*index_site_channel.modify {addstart|'index_site_id'}
*index_site_id.modify {substring(type=regex)|<channel [^>]*id="([^\"]*)"[^>]*>}
*index_site_channel.modify {substring(type=regex)|<display-name [^>]*>(.*?)</display-name>}
*index_site_id.modify {cleanup(removeduplicates=equal link="index_site_channel")}
*end_scope
** @auto_xml_channel_end

View File

@@ -0,0 +1,55 @@
document created 09/05/2014 by Jan van Straaten
updated 17/10/2015 Allows Multiple xmltv input files to merge
How to Merge existing xmltv files with WebGrab+Plus.
**************************************************************************************************
* Introduction
**************************************************************************************************
This is the preferred method as an alternative for the method described in the document Merging-xmltv-files.txt which is avaiable @ http://www.webgrabplus.com/sites/default/files/download/documentation/Set%20of%20help%20files/help-files.zip
This alternative makes use of the 'file protocol' as described in section 4.4.4 of the manual. With this the program reads the existing xmltv file, extracts the xmltv data for the channels specified in the config file for the timespan also specified there and adds it to the xmltv output file.
In fact this method is no different from a normal wg++ run, but instead of grabbing the raw epg data from a tvguide website, it reads this from the existing xmltv file. For that it makes use of a dedicated 'siteini' file, merge-xmltv.ini, in which all the necessary parameters and steps are defined, just like any other siteini. With it, it does all the normal things, like removing obsolete shows, extracting start and stop time and converting it to the timezone if necessary, extracting all the xmltv elements, like title, desc, actor, episode etc and finally writing all of that to the xmltv output file. In the same run, you can add channels from other sources, like tvguide sites, by adding these channels to the channel-list in the config file, just like any other WG++ run, but also if required from another existing xmltv file.
**************************************************************************************************
* Setup (configure your files to merge)
**************************************************************************************************
01. Download the special siteini merge-xmltv.ini @http://www.webgrabplus.com/sites/default/files/download/ini/info/SiteIni.Pack/Misc/merge-xmltv.ini
02. Open this ini in a text editor, e.g. notepad or notepad++
03. Add the xmltv files you want to merge in the merg-xmltv.ini:
find
*** edit - path_of_the_xmltv_file2merge.xml - to your requirements
and add one line below eg.
subpage.format {list|D:\guide-1.xml} * 1 file we want to merge
subpage.format {list|D:\guide-1.xml|D:\guide-2.xml} * 2 files we want to merge
subpage.format {list|D:\guide-1.xml|D:\guide-2.xml|D:\guide-3.xml} * 3 files we want to merge
You can also change:
timezone=UTC+00:00
into
the timezone of the original xmltv files
eg.
timezone=Europe/Rome
timezone=UTC
You can also change:
cultureinfo=en-GB
into
the cultureinfo of the country of the original xmltv files
eg.
cultureinfo=it-IT
**************************************************************************************************
* generate your own merge-xmltv.channel.xml file
**************************************************************************************************
04. open merge-xmltv.ini with a text editor
05. remove the FIRST * in all the lines between @auto_xml_channel_start and @auto_xml_channel_end
06. in the WebGrab++.config.xml file, add a dummy channel like this:
<channel update="i" site="merge-xmltv" site_id="" xmltv_id="dummy">dummy</channel>
07. run WG++ once.
08. your should get a merge-xmltv.channel.xml file in the same directory as the .ini file
09. put the first * back in all the lines between @auto_xml_channel_start and @auto_xml_channel_end
10. use the merge-xmltv.channel.xml to setup your WebGrab++.config.xml file (you can now remove the dummy channels from 06.)
**************************************************************************************************
* generate your merged file
**************************************************************************************************
11. now you can run wg++ with the config file you created in 10 and merge your xmltv files
12. you can add any other siteini channel in the merge config file. wg++ will merge the files and also grab the data for the 'normal' siteinis.

View File

@@ -0,0 +1,55 @@
**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* @Site: your_site_name
* @MinSWversion:
* @Revision 0 - [your_date] your_name
* - your_comments
* @Remarks: your_remarks
* @header_end
**------------------------------------------------------------------------------------------------
*site {url=site.com|timezone=UTC+00:00|maxdays=6|cultureinfo=en-GB|charset=ISO-8859-1|titlematchfactor=90}
*site {ratingsystem=ES|episodesystem=onscreen|grabengine=|firstshow=0|firstday=0000000}
*url_index{url|}
*urldate.format {daycounter|0}
*subpage.format {number||1|}
*index_showsplit.scrub {multi|}
*index_urlshow {url|}
*index_urlchannellogo {url| }
*
*index_date.scrub {single|}
*index_start.scrub {single|}
*index_stop.scrub {single|}
*index_title.scrub {single|}
* most other elements have index_ versions
*
*title.scrub {single|}
*titleoriginal.scrub {single|}
*subtitle.scrub {single|}
*description.scrub {multi|}
*director.scrub {single|}
*actor.scrub {single(separator=", ")|}
*presenter.scrub {single|}
*producer.scrub {single|}
*writer.scrub {single|}
*composer.scrub {single|}
*rating.scrub {multi|}
*ratingicon.scrub {multi|}
*category.scrub {single|}
*productiondate.scrub {single|}
*starrating.scrub {single|}
*episode.scrub {single|}
*subtitles.scrub {single|}
*premiere.scrub {single|}
*previousshown.scrub {single|}
*
* operations:
** _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
** ##### CHANNEL FILE CREATION (only to create the xxx-channel.xml file)
**
** @auto_xml_channel_start
**index_site_channel.scrub {multi|}
**index_site_id.scrub {multi|}
** @auto_xml_channel_end

View File

@@ -0,0 +1,50 @@
**------------------------------------------------------------------------------------------------
* @header_start
* WebGrab+Plus ini for grabbing EPG data from TvGuide websites
* template to grab a xmltv feed
* @Site: your_site_name
* @MinSWversion:
* @Revision 0 - [your_date] your_name
* - your_comments
* @Remarks: your_remarks
* @header_end
**------------------------------------------------------------------------------------------------
*
*site {url=site.com|timezone=UTC+00:00|maxdays=6|cultureinfo=en-GB|charset=ISO-8859-1|titlematchfactor=90}
*site {ratingsystem=ES|episodesystem=onscreen|grabengine=|firstshow=0|firstday=0000000}
*url_index{url|}
*urldate.format {daycounter|0}
index_showsplit.scrub {multi|<programme||</programme>|</programme>}
*
index_start.scrub {single|start="||"|>}
index_stop.scrub {single|stop="||"|>}
index_title.scrub {single|<title|>|</title>|</title>}
index_subtitle.scrub {single|<sub-title|>|</sub-title>|</sub-title>}
index_description.scrub {single|<desc|>|</desc>|</desc>}
index_actor.scrub {multi|<actor>||</actor>|</actor>}
index_director.scrub {multi|<director>||</director>|</director>}
index_writer.scrub {multi|<writer>||</writer>|</writer>}
index_producer.scrub {multi|<producer>||</producer>|</producer>}
index_presenter.scrub {multi|<presenter>||</presenter>|</presenter>}
index_productiondate.scrub {single|<year>||</year>|</year>}
index_category.scrub {multi|<category|>|</category>|</category>}
index_starrating.scrub {single|<star-rating>|<value>|</value></star-rating>}
index_episode.scrub {single|<episode-num>||</episode-num>|</episode-num>}
*index_premiere.scrub {single||||}
*index_previousshown.scrub {single||||}
*
*operations
scope.range {(indexshowdetails)|end}
* extraxt times
*start="20120922004200" stop="20120922021200"
index_start.modify {substring(type=char)|8 4}
index_temp_1.modify {substring(type=char)|'index_start' 0 2} * the hours
index_start.modify {substring(type=char)|2 2} * the minutes
index_start.modify {addstart()|'index_temp_1':}
index_stop.modify {substring(type=char)|8 4}
index_temp_1.modify {substring(type=char)|'index_stop' 0 2} * the hours
index_stop.modify {substring(type=char)|2 2} * the minutes
index_stop.modify {addstart()|'index_temp_1':}
*
index_description.modify {cleanup}
end_scope