You are here

Site.channels.xml

Usage

For nearly every site, there is a youre_site.channels.xml file available.

This file is not used by WG++, but has to be used to configure the channels you want to grab, in the WebGrab++.config.xml file.

It contains all the channels that can be grabed for, on a specific site. So if you want to grab a TV channel, look for that channel line in the youre_site.channels.xml and copy it to the WebGrab++.config.xml file.

Generation

Sometime you want to generate your own .channels.xml file (because the one on the site is out of date, or you have a special siteini file, ...)

Here again, most siteini files support this, but not all. For the one that do not support this, the forum is your bet. There are always people who want to help you out.

The overall overview, to do this:

1. enable .channels.xml generation in the siteini file
2. only add 1 dummy channel in to the WebGrab++.config.xml file + only configure to grab 1 day
3. run WG++ once (this wil generate the youre_site.channels.xml file)
4. disable the .channels.xml generation in the siteini file again

More in detail:

For this I'll use an example site mysite.com to illustrate the steps.

1.
Open mysite.com.ini with a plain text editor (Notepad, Notepad++, vi, emacs, TextEdit, ...).
Look for the .channels.xml generation lines and uncomment them. This is done by removing the first * in front of each line.
The lines can be found like folows:

new way
Look for @auto_xml_channel_start & @auto_xml_channel_end and uncomment everyting inbetween those two elements.
eg. change:

** @auto_xml_channel_start
** example of one entry <option value="89">101 M-Net</option>
*scope.range {(channellist)|end}
*index_site_channel.scrub      {multi|id="guide-channel"|">|</option>|</select>}
*index_site_id.scrub           {multi(exclude="select ")|id="guide-channel"|value="|"|</select>}
** remove the 101 value in front of the channel name
*index_site_channel.modify     {remove(type=word)|0 1}
*end_scope
** @auto_xml_channel_end

into:

* @auto_xml_channel_start
* example of one entry <option value="89">101 M-Net</option>
scope.range {(channellist)|end}
index_site_channel.scrub      {multi|id="guide-channel"|">|</option>|</select>}
index_site_id.scrub           {multi(exclude="select ")|id="guide-channel"|value="|"|</select>}
* remove the 101 value in front of the channel name
index_site_channel.modify     {remove(type=word)|0 1}
end_scope
* @auto_xml_channel_end

old way
Look for the index_site_id and index_site_channel elements.

eg. change:

* enable the next four lines to create a channel list (file needs editting)
* change site_id to site_channel
* add site_channel with the group name
*index_site_channel.scrub {multi|<a href="#">Vlaams</a></h3>|v=0.1.11" alt="|" class|<div style="clear:both;"></div>}
*index_site_id.scrub {multi|<a href="#">Vlaams</a></h3>|v=0.1.11" alt="|" class|<div style="clear:both;"></div>}
*index_site_id.modify { cleanup (style=lower)}
*index_site_id.modify { replace| |-}

into:

* enable the next four lines to create a channel list (file needs editting)
* change site_id to site_channel
* add site_channel with the group name
index_site_channel.scrub {multi|<a href="#">Vlaams</a></h3>|v=0.1.11" alt="|" class|<div style="clear:both;"></div>}
index_site_id.scrub {multi|<a href="#">Vlaams</a></h3>|v=0.1.11" alt="|" class|<div style="clear:both;"></div>}
index_site_id.modify { cleanup (style=lower)}
index_site_id.modify { replace| |-}

2.
Add only one dummy channel in the WebGrab++.config.xml file

<channel update="f" site="mysite.com" site_id="" xmltv_id="dummy">dummy</channel>

and only grab for 1 day

<timespan>0</timespan>

3.
Now just run WG++ and your mysite.channels.xml file should be generated, if all goes well.

4.
Just comment the .channels.xml generation out again. So revert what was done in step 1

 

Brought to you by Jan van Straaten

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