Would like to select a specific sublink (1 Viewer)

z3gator

Portal Member
March 22, 2006
15
0
I've had pretty good success with the WebEPG Designer to create a (modified) grabber for imdb.com that correctly parses the start, title, (optional) subtitle, and description. Then, I got ambitious and tried to create a sublink to pick up the season and episode information. Unfortunately, the entries that have episode information have two links -- the first is for the series and the second is for the episode and I've been unable to figure out how to limit the search to only pick up the desired (second) link.

Here's a sample snippet of the HTML from imdb:

Code:
<tr class="station_listing"><td nowrap="1" align="right" width="60px"><a href="/tvgrid/2011-03-29/2000/#KDKA">8:00 PM</a></td>
<td><b><a href="/title/tt0364845/">NCIS</a></b>&nbsp;-&nbsp;
<i><a href="/title/tt1683259/">Tell-All</a></i>:&nbsp;NCIS investigates a message in blood left by a murdered officer.</td></tr>

The series title and associated link is always inside bold tags, while the episode title and associated link (if applicable -- some shows do not have episode names and/or links) is inside italic tags. I thought I could leverage this to extract the season and episode information from the correct link, but I've been unable to figure out a way to get WebEPG to follow that link. It always follows the first link, which does not contain the season/episode information.

I found the wiki very helpful, but with it's sparse descriptions and limited examples, I've been doing a lot of trial and error, which doesn't work very well for these secondary/optional features. Similarly, the WebEPG designer has been wonderful for figuring out the parsing, but doesn't provide support for much beyond the main template text (although I was able to use it to parse the sublink results, I could not figure out how to use it to select the sublink I want).

Any help would be greatly appreciated -- I feel like I am so close (and yet so far) from having the very useful season/episode information in the tv guide, which would then make recordings more useful.

It occurred to me that a (presumably) simple enhancement would meet my needs: assuming I am correct that it's just always selecting the first matching sublink, just adding a numeric attribute to the sublink tag to specify an index (so I could use 1, rather than 0) would allow me to tell it how to select the correct sublink.
 

Users who are viewing this thread


Write your reply...
Top Bottom