[mythtv-users] Mythstream parsers - BBC

Neale Swinnerton mythtv-users.spam at isismanor.com
Sat Aug 27 06:56:36 UTC 2005


The Beeb also lets you browse by genre...Here's a dump of my streams 
table with all the URL's

Thanks to Robin's hard work on the parsers this is really nice now.

Neale.


Neale Swinnerton wrote:
> LOL, We've both been working on the same thing this morning.... I was just
> about to post something almost identical
> 
> For the Weekday links, you can save the description too, and I got rid of
> the extra ' ' in the description....
> 
> 
> my $s_description = "";
> 
> while (my $token = $p->get_tag("a")) {
>    my $url = $token->[1]{href};
>    my $name = $p->get_trimmed_text("/a");
>    my $target = $token->[1]{target};
>    my $class = $token->[1]{class};
>    my $description = $p->get_trimmed_text("a", "/li", "/div", "br", "/span");
>    $description =~ s/^\s*-\s*//g; # remove -
>    if ($class =~ /txday/) {
>       $name = $s_name." - ".$name;
>       $description = $s_description;
>    } else {
>       $s_name = $name;
>       $s_description = $description;
>    }
> 
> 
> 
> 
>>>Greetings
>>>
>>>I've done a first cut at getting BBC programs (those other than live) to
>>
>>[snip]
>>
>>Well, its done as far as I'm concerned!! Here it is... I've included a
>>snip from the streams.res file (I use the mythstream database but the
>>effect is the same). Also attached is a patch from the author of
>>MythStream that fixes a problem with a large page with only relative URLs
>>in it!
>>
>>One thing I have noticed - there is a bit of a delay (3-4 secs) from
>>selecting a show to it starting to buffer it - this is the second level
>>script getting a couple of pages as it works through the indirections!!
>>
>>Enjoy...
>>
>>--
>>Robin Gilks
>>_______________________________________________
>>mythtv-users mailing list
>>mythtv-users at mythtv.org
>>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>
> 
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

-------------- next part --------------
INSERT INTO streams VALUES ('BBC Radio Last 7 Days','Radio 1','http://www.bbc.co.uk/radio/aod/networks/radio1/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Radio Last 7 Days','Radio 2','http://www.bbc.co.uk/radio/aod/networks/radio2/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Radio Last 7 Days','Radio 3','http://www.bbc.co.uk/radio/aod/networks/radio3/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Radio Last 7 Days','Radio 4','http://www.bbc.co.uk/radio/aod/networks/radio4/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Radio Last 7 Days','Five Live','http://www.bbc.co.uk/radio/aod/networks/fivelive/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Radio Last 7 Days','1Xtra','http://www.bbc.co.uk/radio/aod/networks/1xtra/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Radio Last 7 Days','6 Music','http://www.bbc.co.uk/radio/aod/networks/6music/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Radio Last 7 Days','BBC 7','http://www.bbc.co.uk/radio/aod/networks/bbc7/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Radio Last 7 Days','World Service','http://www.bbc.co.uk/radio/aod/networks/worldservice/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Music by Type','Blues, Soul & Reggae','http://www.bbc.co.uk/radio/aod/genres/blues/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Music by Type','Classic Rock/Pop','http://www.bbc.co.uk/radio/aod/genres/classicpop/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Music by Type','Classical','http://www.bbc.co.uk/radio/aod/genres/classical/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Music by Type','Dance','http://www.bbc.co.uk/radio/aod/genres/dance/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Music by Type','Easy & Soundtracks','http://www.bbc.co.uk/radio/aod/genres/easy/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Music by Type','Experimental','http://www.bbc.co.uk/radio/aod/genres/experimental/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Music by Type','Folk & Country','http://www.bbc.co.uk/radio/aod/genres/folk/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Music by Type','Jazz','http://www.bbc.co.uk/radio/aod/genres/jazz/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Music by Type','Music Documentaries','http://www.bbc.co.uk/radio/aod/genres/musicdoc/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Music by Type','Pop','http://www.bbc.co.uk/radio/aod/genres/pop/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Music by Type','Rock & Alt','http://www.bbc.co.uk/radio/aod/genres/rock_alt/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Music by Type','Urban','http://www.bbc.co.uk/radio/aod/genres/urban/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Music by Type','World','http://www.bbc.co.uk/radio/aod/genres/world/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Docu by Type','Arts & Drama','http://www.bbc.co.uk/radio/aod/genres/artsdrama/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Docu by Type','Children','http://www.bbc.co.uk/radio/aod/genres/child/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Docu by Type','Comedy & Quizzes','http://www.bbc.co.uk/radio/aod/genres/comedy/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Docu by Type','Entertainment','http://www.bbc.co.uk/radio/aod/genres/entertainment/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Docu by Type','Factual','http://www.bbc.co.uk/radio/aod/genres/factual/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Docu by Type','History','http://www.bbc.co.uk/radio/aod/genres/history/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Docu by Type','News & Current Affairs','http://www.bbc.co.uk/radio/aod/genres/news/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Docu by Type','Religion & Ethics','http://www.bbc.co.uk/radio/aod/genres/religion/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Docu by Type','Science','http://www.bbc.co.uk/radio/aod/genres/science/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Docu by Type','Soap','http://www.bbc.co.uk/radio/aod/genres/soap/audiolist.shtml','','bbc_l1');
INSERT INTO streams VALUES ('BBC Docu by Type','Sport','http://www.bbc.co.uk/radio/aod/genres/sport/audiolist.shtml','','bbc_l1');


More information about the mythtv-users mailing list