Hi!
I'm trying to merge my existing .xml file with another tv-programs collected by wg++ and for channels from the original .xml keep channel logos (all the channels in original .xml have channel logo URL).
But I think I misunderstanding something in the manual because I can't get it working.
I use merge-xmltv.ini and when I add something like
index_urlchannellogo.scrub {regex(debug)||<icon src="(.*?)"||}
I get all the logos from original xml for each channel like
<icon src="http://site.com/img_1.png|http://site.com/img_2.png|http://site.com/img_3.png" />.
And I think I understand why it's happening.
But if I add the same line in
scope.range {(datelogo)|end}
...
end_scope
I get the same result.
The best that I can get is the same logo for all the channels (actually the first logo from the original xml).
And it's frustrating me.
How to add channel logos in merge-xmltv.ini?
I tried to find the answer on forum. But it seems that the answer on the same question was written by Blackbear199. Unfortunately all the messages by Blackbear199 seems deleted.
you have the same because you are not making the difference, so it adds same. You need to get the block (that includes your xmltv_id) between channel id= and the end of channel block then include your index_variable_element
Updated merge-xmltv.ini in siteini.pack
Thank you for your help. After some changes, it's working in my case (my (space missing) instead " /> ).
Now I think I understand the logic.
But now I don't understand your regex. How it can work if it contain /channel> for example.
As I know an unescaped delimiter / must be escaped with a backslash \ that missed here.
You right, I should have escaped but in some particular cases may not be necessary, as wg++ does not integrate a full "pure" regex. Again is better to escape most of character before the common ".", "/", "?", "+", etc etc....