[mythtv-users] Mythstream parsers - BBC
mythtv-users.spam at isismanor.com
Fri Aug 26 09:35:43 UTC 2005
I'm confused on how to set this up in mythstream
I've added a row to the streams table...
folder = Test
name = Radio 2 Programs
url = http://www.bbc.co.uk/radio/aod/networks/radio2/audiolist.shtml
handler = bbc_l1
description = Radio 2 Programs
This appears in the ui, and when I click on it, off it goes 'harvesting',
but it comes back with no results.
Looking at the output of
$ wget http://www.bbc.co.uk/radio/aod/networks/radio2/audiolist.shtml $
ie. the Url's are relative, so I assume that when they get passed to
bbc_l2 they don't find anything. By hardcoding a url prefix in bbc_l1 of
to make the output of bbc_l1.pl look like this....
Then It all works nicely, but obviously only for that stream. Do I really
need a version of bbc_l1.pl for each stream, with the hardcoded prefix ?
> 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
.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
> 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
> Robin Gilks
> mythtv-users mailing list
> mythtv-users at mythtv.org
More information about the mythtv-users