[mythtv-users] Mythstream parsers - BBC

Robin Gilks g8ecj at gilks.org
Wed Aug 24 21:18:15 UTC 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bbc_l1.pl
Type: application/octet-stream
Size: 4693 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20050825/b6e7eadd/bbc_l1.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bbc_l2.pl
Type: application/octet-stream
Size: 2815 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20050825/b6e7eadd/bbc_l2.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: url_list
Type: application/octet-stream
Size: 567 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20050825/b6e7eadd/url_list.obj


More information about the mythtv-users mailing list