You are here

Ini files

About creating, modifying site INI files. (SiteIni Pack)

Error while merging 2 xml files using merge-xmltv.ini

Forums: 

I am using WebGrabPlus on Libreelec, along with WebGrabPlus Configurator.  When i run webgrabplus.run, to add the dummy channel,  the system tells me that the final xml file (ie: guide_wgp.xml) is in use by another process.  I did not run into this when adding dummy channels for other sites (ie: tv.com). 

here is the output from webgrabplus.run:

Job started at 15/11/2016 07:10:44
timezone=UTC-08:00 mapped with timezone_id "US/Pacific"
found: siteini.pack/Misc/merge-xmltv.ini -- Revision 03
processing /storage/.kodi/userdata/addon_data/service.webgrabplus/guide_wgp.xml ...
Could find existing channel (xmltv_id=dummy) in the config file
...

      i=index  .=same  c=change  g=gab  r=replace  n=new

Group (0) :
update requested for - 1 - out of - 1 - channels for 14 day(s)
(   1/1   ) MERGE-XMLTV -- chan. (xmltv_id=dummy) -- mode Incremental
i
cannot access /storage/.kodi/userdata/addon_data/service.webgrabplus/guide_wgp.xml
file in use by an other process!
will retry for 30 seconds
giving up writing to /storage/.kodi/userdata/addon_data/service.webgrabplus/guide_wgp.xml
channel not updated!!
no shows in indexpage!

Can anyone help, please?

Thank you,

Drew

Channel List Creation - TWCC.COM

Forums: 

Hello

I have created the INI for grabbing the data but I can't use channel creation script because the site uses JavaScript table for listing channel IDs and channel names. Here's the page:

http://tv.twcc.com/listings

 

EDIT: Never mind. I used Regex manually with firefox and extracted what I needed.

Updated freeview.com.au Australian EPG scraper

Forums: 

Hi all, I finally registered to say I have created an INI for the newly updated freeview.com.au site.

The new site is unlike anything the old one and the old freeview.com.au INI by Blackbear199 had no chance any more.

My INI stripts the production year from the description and puts it correctly into the production year field.
The rest of the content is there, and I have not noticed any errors as of yet.

So I created this from scratch and I do intend to do 2 updates to it when I can get around to it.
1. Currently the episode listings are only in xmltv standard for use with NextPVR, however I will add the section for standard use too.
2. Release a small powershell/vbs utility that reads the freeview xlsx automatically and updates the site_id's in WebGrab++.config.xml in case there is any changes

Point 2 is only because on one occasion since the new site came about, I have found one channel switching its ID unknown to me for a little bit.

Anyways process  listed in file is outdated, use the below method if have excel/excel equivalent:
1. Get channel list from http://freeviewcdn.azureedge.net/XML/config.xlsx (Freeview site)
2. On services tab, insert an additional column after column F 'Region', so lets say new column will be G
3. In column G, row 2 paste without square brackets [="<channel update=" & CHAR(34) & "f" & CHAR(34) & " site=" & CHAR(34) & "freeview.com.au" & CHAR(34) & " site_id=" & CHAR(34) & SUBSTITUTE(SUBSTITUTE(A2,"0x",""),".","") & CHAR(34) & " xmltv_id=" & CHAR(34) & D2 & CHAR(34) & ">" & D2 & "</channel>"] and expand down to end of spreadsheet data
4. Filter column F 'Region' to suit your own region and then copy column G we created into 'WebGrab++.config.xml'
5. Set <timespan>8</timespan> in 'WebGrab++.config.xml' as there is up to 9 days of EPG data available, when Freeview updates the listing

NOTE: Timezone needs to remain in UTC as that is how Freeview now provides the dates, do not change!

NOTE2: In post #5, Blackbear199 has detailed how to use channels.xml as a solution as well

Hope you enjoy
 

Attachments: 

Problem with RTBF.BE

Forums: 

Hello,

I've came across multiple problems with this site rtbf.be

The site uses 3-days index pages with hours as subpage. I could figure out some basics but I can't delete duplicate entries in titles and I can't have titles from 1 day only. Everything messes up! The indexpage uses something like this line to seperate each day:

                 <h5 class="date-header">
                        <span class="epg-day-name">Jeudi</span>
                        <span class="epg-day-date">3 novembre</span>

                 <h5 class="date-header">
                        <span class="epg-day-name">Vendredi</span>
                        <span class="epg-day-date">4 novembre</span>

                 <h5 class="date-header">
                        <span class="epg-day-name">Samedi</span>
                        <span class="epg-day-date">5 novembre</span>

Is there a way to define a variable element and use it for splitting index pages?: (I've defined temp_1 to result in dates used in the above lines)

index_temp_1.modify {calculate(format=date,d/MMMM)}
index_temp_1.modify {replace|/| }

Another problem is for Producer, Journaliste and other elements. I can't extract all of them.

I've uploaded my own INI (if you can call it one)...

Attachments: 

site ini vcfaz.tv

Forums: 

Hello,

 

how can i get the siteini for vcfaz.tv, for example for

http://vcfaz.tv/programacao.php?canal=APA

Thanks

SiteINI modifying - Calculate start times to adapt to GMT/UTC problem

Forums: 

Hello,

I wanted to adapt all my EPG data with GMT/UTC so instead of adding offset for channels in my config file (and thus making my EPG bigger) it would be better for me to edit SiteINI files. I could edit some of them but some other would get problematic.

For example if I add this line to nos.pt.ini (First show starts at 2016/10/31 00:18 for example):
index_start.modify {calculate(format=time,HH:mm)|01:00 -}

The calculation happens but the date won't change. (The result of the above calculation's result for my example is 2016/10/31 23:18 but the correct calculation is 2016/10/30 23:18)

 

Here's the debug info:

[  Debug ] Debugging information SiteIni
[  Debug ] Element:  INDEX_START
[  Debug ] Modify
[  Debug ]      command & arguments : calculate(debug)(format=time,HH:mm)
[  Debug ]      Expression-1            : 01:00 -
[  Debug ]      Element value before operation:
[  Debug ] 00:18
[  Debug ]      Calculate 01:00 -
[  Debug ]      Result = 23:18
[  Debug ]      Element value after operation:
[  Debug ] 23:18
[  Debug ] Converted to:
31-10-2016 23:18:00

SiteINI creating - How to remove optional strings in Title

Forums: 

Hello,

As I was creating my first SiteINI file, I stumbled upon some optional strings found in different elements such as Title.

For exmple I came across a site with these lines as title:

<h3><a href="https://webgrabplus.com/en/articles/Superman-Returns.html">Superman Returns</a></h3>
<h3>The Insider</h3>
<h3>Entertainment Tonight </h3>
<h3><a href="https://webgrabplus.com/en/articles/Riding-in-Cars-with-Boys.html">Riding in Cars with Boys</a></h3>

As it is seen, some titles have this string: <a href="https://webgrabplus.com/%28.%2B%29"> before title and this </a> after title. How can I program WebGrabPlus to not include these optional strings in my element (title in this case)?

 

PS: I know a little about RegEx if it may help. In RegEx I can use Capture Group function like this:

Find:

<h3>(<a href="https://webgrabplus.com/%28.%2B%29">)?(.+)( <\a>)?</h3>

Replace:

<h3>\3</h3>

But I don't know how to do it with WebGrab++

grab from local guide.xml file

Forums: 

hello is there an ini file for grab from local network xml file to your own?

Pages

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl