Following on from previous tasks (http://www.webgrabplus.com/content/mlb-extra-innings-tvpassport), there is sample code on there which illustrates how to switch the subtitle & title (every time regardless) for the tvpassport ini, I'm not familiar with the language but tried it in every way I deemed fit, can someone advise what to change in that ini so it always swaps title & subtitle?
Without looking the site ini he renamed (i guess) the two modify, this means that the part of regex that was getting title is inverted with subtitle just renaming the modify originally should have been:
index_subtitle.modify {substring(type=regex)|'index_temp_4' "<st>([^<]*)"}
index_title.modify {substring(type=regex)|'index_temp_4' "<t>([^<]*)"}
and then renamed into
index_title.modify {substring(type=regex)|'index_temp_4' "<st>([^<]*)"}
index_subtitle.modify {substring(type=regex)|'index_temp_4' "<t>([^<]*)"}
This let's say is small trick to invert title with subtitle, applicable in this particular case. Personally I wouldn't do that, has this might be good for a sport show but could mess up everything and/or end up with shows without a title, in other channels.
What you could do, is a replace in case it contains "Baseball" but you will title=subtitle and again will work for all title that contain the word Baseball
index_title.modify {replace(include="Baseball")|'index_title'|'index_subtitle'}
You can do it one way only as most probably the word baseball will not be in subtitle
I've separated my sports to a different Config to keep these modifications safe from the other content, if it's possible to switch based on 1 word like "baseball" it would be ideal for all users if someone was to modify the base ini to support these sports as all are like it.
I will try your suggestions but I'm still hesitant as it's one language I'm still getting my head round.
perfect! Can't thank you enough! Do you think this should be the common approach and as such merged to the public ini?
I tried this version on WebGrab 2.1 but keep getting "no shows in indexpage".
The previous version of the tvpassports.ini (@Revision 0) works fine but @Revision 2 I get the error : "no shows in indexpage".
Any reason that could cause the error?
I just did that now and and I got the following
<channel update="i" site="tvpassport.com" site_id="" xmltv_id="">
Which is the same as previous one.
This is an example of what I use and end up getting no index error with the revised version
<channel update="i" site="tvpassport.com" site_id="amc-eastern-feed-hd/6219" xmltv_id="AMC">AMC (US)</channel>
Attached both two sets of files; that worked and failed.
You are right, one section was still enabled. It now working fine. Thank you so much for your help.