Live tv streams not working
David Woodhouse
dwmw2 at infradead.org
Tue Jun 22 11:52:17 EDT 2010
Does this work?
diff --git a/get_iplayer b/get_iplayer
index 5f0298f..4a06742 100755
--- a/get_iplayer
+++ b/get_iplayer
@@ -6062,6 +6062,11 @@ sub get_stream_data {
} elsif ( $verpid =~ /http:/ ) {
$xml = main::request_url_retry( $ua, $verpid, 3, undef, undef, 1 );
main::logger "\n$xml\n" if $opt->{debug};
+ if ( $xml =~ m{<mediator identifier=\"(.+?)\"} ) {
+ $verpid = $media_stream_data_prefix.$1;
+ main::logger "new verpid $verpid" if $opt->{debug};
+ $xml = main::request_url_retry( $ua, $verpid, 3, undef, undef, 1 );
+ }
@medias = parse_metadata( $xml );
# Could also use Javascript based one: 'http://www.bbc.co.uk/iplayer/mediaselector/4/js/stream/$verpid?cb=NNNNN
--
dwmw2
More information about the get_iplayer
mailing list