[mythtv-users] Mythstream parsers - BBC

Neale Swinnerton mythtv-users.spam at isismanor.com
Thu Aug 25 11:55:48 UTC 2005


This looks very interesting, I haven't played with it in Mythstream yet tho'.

How about using HTML::TokeParser for the parsing rather than your
regex's?, I think it'll handle 'bad' html a bit better.

updated version of bbc_l1.pl attached. (untested, but it creates the same
output as your bbc_l1.pl)

Neale,




> Greetings
>
> I've done a first cut at getting BBC programs (those other than live) to
> list and play in Mythstream. Its a two stage process, where the stage 1
> gets a frame from the bbcplayer and lists the shows available. This script
> provides a handler hint for stage 2. Selecting a show gets a page that
> contains a mass of javascript that is parsed for the url of the .rpm file.
> This is processed in stage 2 where the contents of the .rpm file (the
> actual rstp url) is extracted and returned.
>
> I've attached these, plus a list of stage 1 urls to go into stream.res or
> the database. Don't forget that the handler for these should point to
> bbc_l1.
>
> Only problems I've had so far is the Radio 4 says "no data received" but
> getting the 1st page manually using wget and running it through the stage
> 1 parser looks OK - and I can't seem to get hold of the rest of the line
> after a </a> tag to get a description. That reflects my skill with perl
> (i.e. non-existant!!)
>
> All input gratefully received - in other words can you all help me debug
> it :-))
>
> --
> Robin Gilks
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bbc_l1.pl
Type: application/octet-stream
Size: 4046 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20050825/84411e12/bbc_l1.obj


More information about the mythtv-users mailing list