2007-11-13, 09:28 AM
Sorry, have just updated the wiki.
It was quite hard for me to explain so perhaps I'll give an example.
The text that is searched through might look like....
------------------------------------------------------------------
<tr valign="top">
<td class="tvgentertainment">TV1</td>
<td bgcolor="#008FCA"> </td>
<td colspan="2" bgcolor="#F5FCFF">
<a href="#" class="tvgprogram"
onmouseover="return escape('General Entertainment<br><b>Spooks (23:10)</b><br><b>TV1</b><br><b>11:00pm-12:10am</b>')"
onClick="openBrWindow('tvg-program-info.cfm?cc=TV1A&ds=2007-11-12&st=23:00&en=Spooks','info','scrollbars=yes,width=350,height=426'); return false">« Spooks (23:10)
</a>
<span class="tvgclassification">(M)</span>
</td>
<td colspan="142" bgcolor="#F5FCFF"></td>
</tr>
------------------------------------------------------------------
Once the config is read and reads the lines, the data ends up as
onmouseover="return escape('General Entertainment<br><b>Spooks (23:10)</b><br><b>TV1</b><br><b>11:00pm-12:10am</b>')"onClick="openBrWindow('tvg-program-info.cfm?cc=TV1A&ds=2007-11-12&st=23:00&en=Spooks','info','scrollbars=yes,width=350,height=426'); return false"
------------------------------------------------------------------
So the config string would be.
TV1,01,2,onmouseover,TV1,<b>,3,</b>,&ds=,1,&,<b>,1,</b>,â,1,<br>,http ://www. gbpvr.com/logo/TV1.jpeg
------------------------------------------------------------------
So, what each field means:
1. TV1, What Channel to look for
-----------------
2. 01, The channel ID
-----------------
3. 2, The no. of lines to read once it finds the searched for string and combines them into one line
-----------------
4. onmouseover, The string to search for to start reading (as above)
-----------------
5. TV1, The second string to search for (Diff than no1.
-----------------
6. <b>, From the lines read (no3) string to search for the time
-----------------
7. 3, The number of instances of no6 to find before the string for time is found.
IE:
onmouseover="return escape('General Entertainment<br><b>Spooks (23:10)</b><br><b>TV1</b><br><b>11:00pm-12:10am</b>')"onClick="openBrWindow('tvg-program-info.cfm?cc=TV1A&ds=2007-11-12&st=23:00&en=Spooks','info','scrollbars=yes,width=350,height=426'); return false"
-----------------
8. </b>, The end of the string for time
-----------------
9. &ds=, String to search for to find the date
-----------------
10. 1, The number of instances of no8 to find before the string for date is found
IE:
onmouseover="return escape('General Entertainment<br><b>Spooks (23:10)</b><br><b>TV1</b><br><b>11:00pm-12:10am</b>')"onClick="openBrWindow('tvg-program-info.cfm?cc=TV1A&ds=2007-11-12&st=23:00&en=Spooks','info','scrollbars=yes,width=350,height=426'); return false"
-----------------
11. &, The string that marks the end of the date
IE:
onmouseover="return escape('General Entertainment<br><b>Spooks (23:10)</b><br><b>TV1</b><br><b>11:00pm-12:10am</b>')"onClick="openBrWindow('tvg-program-info.cfm?cc=TV1A&ds=2007-11-12&st=23:00&en=Spooks','info','scrollbars=yes,width=350,height=426'); return false"
-----------------
12. <b>, String to search for to find the name
-----------------
13. 1, The number of instances of no12 to find before the string for date is found
-----------------
14. </b>, The string that marks the end of the name
-----------------
15. â, String to search for to find the program description
-----------------
16. 1, The number of instances of no15 to find before the string for date is found
-----------------
17. <br>, The string that marks the end of the program description
-----------------
18. http ://www. gbpvr.com/logo/TV1.jpeg Icon use use
------------------------------------------------------------------
It was quite hard for me to explain so perhaps I'll give an example.
The text that is searched through might look like....
------------------------------------------------------------------
<tr valign="top">
<td class="tvgentertainment">TV1</td>
<td bgcolor="#008FCA"> </td>
<td colspan="2" bgcolor="#F5FCFF">
<a href="#" class="tvgprogram"
onmouseover="return escape('General Entertainment<br><b>Spooks (23:10)</b><br><b>TV1</b><br><b>11:00pm-12:10am</b>')"
onClick="openBrWindow('tvg-program-info.cfm?cc=TV1A&ds=2007-11-12&st=23:00&en=Spooks','info','scrollbars=yes,width=350,height=426'); return false">« Spooks (23:10)
</a>
<span class="tvgclassification">(M)</span>
</td>
<td colspan="142" bgcolor="#F5FCFF"></td>
</tr>
------------------------------------------------------------------
Once the config is read and reads the lines, the data ends up as
onmouseover="return escape('General Entertainment<br><b>Spooks (23:10)</b><br><b>TV1</b><br><b>11:00pm-12:10am</b>')"onClick="openBrWindow('tvg-program-info.cfm?cc=TV1A&ds=2007-11-12&st=23:00&en=Spooks','info','scrollbars=yes,width=350,height=426'); return false"
------------------------------------------------------------------
So the config string would be.
TV1,01,2,onmouseover,TV1,<b>,3,</b>,&ds=,1,&,<b>,1,</b>,â,1,<br>,http ://www. gbpvr.com/logo/TV1.jpeg
------------------------------------------------------------------
So, what each field means:
1. TV1, What Channel to look for
-----------------
2. 01, The channel ID
-----------------
3. 2, The no. of lines to read once it finds the searched for string and combines them into one line
-----------------
4. onmouseover, The string to search for to start reading (as above)
-----------------
5. TV1, The second string to search for (Diff than no1.
-----------------
6. <b>, From the lines read (no3) string to search for the time
-----------------
7. 3, The number of instances of no6 to find before the string for time is found.
IE:
onmouseover="return escape('General Entertainment<br><b>Spooks (23:10)</b><br><b>TV1</b><br><b>11:00pm-12:10am</b>')"onClick="openBrWindow('tvg-program-info.cfm?cc=TV1A&ds=2007-11-12&st=23:00&en=Spooks','info','scrollbars=yes,width=350,height=426'); return false"
-----------------
8. </b>, The end of the string for time
-----------------
9. &ds=, String to search for to find the date
-----------------
10. 1, The number of instances of no8 to find before the string for date is found
IE:
onmouseover="return escape('General Entertainment<br><b>Spooks (23:10)</b><br><b>TV1</b><br><b>11:00pm-12:10am</b>')"onClick="openBrWindow('tvg-program-info.cfm?cc=TV1A&ds=2007-11-12&st=23:00&en=Spooks','info','scrollbars=yes,width=350,height=426'); return false"
-----------------
11. &, The string that marks the end of the date
IE:
onmouseover="return escape('General Entertainment<br><b>Spooks (23:10)</b><br><b>TV1</b><br><b>11:00pm-12:10am</b>')"onClick="openBrWindow('tvg-program-info.cfm?cc=TV1A&ds=2007-11-12&st=23:00&en=Spooks','info','scrollbars=yes,width=350,height=426'); return false"
-----------------
12. <b>, String to search for to find the name
-----------------
13. 1, The number of instances of no12 to find before the string for date is found
-----------------
14. </b>, The string that marks the end of the name
-----------------
15. â, String to search for to find the program description
-----------------
16. 1, The number of instances of no15 to find before the string for date is found
-----------------
17. <br>, The string that marks the end of the program description
-----------------
18. http ://www. gbpvr.com/logo/TV1.jpeg Icon use use
------------------------------------------------------------------
Intel 3Ghz P4, 1024Mb RAM, 2x PVR500, NovaT500 (New July2009) (PC dedicated to TV). 1 Media MVP. Author of djkxml.