Hello, Im' new to the forum and also new to WebGrab+Plus ini programing.
I wanted to test how I could update an existing INI file to add in the output the Channel Number reported by a website.
For my test I used the first one I stumble upon: virginmedia.com http://webgrabplus.com/epg-channels#s1B6 (original INI files)
So I modify virginmedia.com.ini file to add a new variable in uncommented @auto_xml_channel_start
index_temp_9.scrub {regex||channel-live\\\"><p>(.*?)<\\/p>||}
to attempt to add it to channel name
index_site_channel.modify {addend| 'index_temp_9'}
so I endup with the following
index_site_id.scrub {regex||"([^\"]*)":\{"trans"||}
index_site_id.modify {addend|##'index_variable_element'}
index_temp_9.scrub {regex||channel-live\\\"><p>(.*?)<\\/p>||}
index_site_channel.scrub {regex||span class=\\"channel-logo.*?title=\\"(.+?)\\">||}
index_site_channel.modify {remove|\}
index_site_channel.modify {addend| 'index_temp_9'}
if it is working for the first channel this is remplacing the name of channel starting the second channel by the channel number.
definitly there is something that I still not understood. Any tips will be welcome :-D
Many thanks.
My WebGrab+Plus version is V1.57
[edit]to add sample output
<site generator-info-name="WebGrab+Plus/w MDB & REX Postprocess -- version V1.57 -- Jan van Straaten" site="virginmedia.com">
<channels>
<channel update="i" site="virginmedia.com" site_id="bbc-one##40979" xmltv_id="BBC ONE 101">BBC ONE 101</channel>
<channel update="i" site="virginmedia.com" site_id="bbc-two##40979" xmltv_id="102">102</channel>
<channel update="i" site="virginmedia.com" site_id="itv##40979" xmltv_id="103">103</channel>
<channel update="i" site="virginmedia.com" site_id="channel-4##40979" xmltv_id="104">104</channel>
...