You are here

'alloc' attribute for index_site_id and index_site_channel doesn't work

10 posts / 0 new
Last post
bam
Offline
Joined: 5 years
Last seen: 4 years
'alloc' attribute for index_site_id and index_site_channel doesn't work

Hello,
can't make it work the 'alloc' attribute: http://webgrabplus.com/sites/default/files/download/documentation/Manual...

Could someone please give me an example of it's usage?

Here is the snippet which DOESN'T work:
** @auto_xml_channel_start
*index_site_id.scrub {regex||]*id="[^\"]*"[^>]*>.*?||}
*scope.range {(channellist)|end}
*index_site_channel.modify {addstart(alloc=display_name)|'index_site_id'}
*index_site_id.modify {substring(type=regex)|]*id="([^\"]*)"[^>]*>}
*index_site_channel.modify {substring(type=regex alloc=display_name)|]*>(.*?)}
*index_site_channel.modify {set(alloc=display_name)|'index_site_channel'}
*index_site_id.modify {cleanup(removeduplicates=equal link="index_site_channel" alloc=xmltv_id)}
*end_scope
** @auto_xml_channel_end

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

Can you post the site.ini and specify what are you trying to achieve ?

bam
Offline
Joined: 5 years
Last seen: 4 years

Sure. Here is the ini file, it's from siteini.pack:
https://github.com/SilentButeo2/webgrabplus-siteinipack/blob/2f4d964b402...

I'm trying to change default 'site_channel' allocation for both xmltv_id and display_name elements in output xml file to use 'site_id' for xmltv_id element of the file instead, and 'site_channel' for display_name element only.

Essentially I'm trying to achieve the same as in this another ini file, but with the structure of my file:
https://github.com/SilentButeo2/webgrabplus-siteinipack/blob/2f4d964b402...

bam
Offline
Joined: 5 years
Last seen: 4 years

Any thoughts?

bam
Offline
Joined: 5 years
Last seen: 4 years

It seems like regression: even with unmodified ini https://github.com/SilentButeo2/webgrabplus-siteinipack/blob/master/site... I get empty channels list with only one entry:

channel update="i" site="teleguide.info" site_id="" xmltv_id=""

It happens until I remove 'alloc' arguments altogether. Then it starts work OK and gives full channel list.

My program is version V2.1.11.0, Linux.

Please, help.

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

you cannot use it with regex.

bam
Offline
Joined: 5 years
Last seen: 4 years

It doesn't work even without regex. Please see my previous message.

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

This is what i am saying, it will never work with regex.

bam
Offline
Joined: 5 years
Last seen: 4 years

Here it used without regex, and it still doesn't work, but worked earlier in previous versions probably.

https://github.com/SilentButeo2/webgrabplus-siteinipack/blob/2f4d964b402...

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 4 hours

The authors are checking

Log in or register to post comments

Brought to you by Jan van Straaten

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