aboutsummaryrefslogtreecommitdiff
path: root/multimedia/get_iplayer/livetv-587146
blob: c9130d8b2cb2d79239de18aa163b6ce43c41bbe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: slightly hacky way to get live tv working again
 until the next proper release
Origin: http://git.infradead.org/get_iplayer.git/commit/029ea904233902002f8f9dd15cea6a9f52c4ba4f
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=587146

--- get-iplayer-2.78.orig/get_iplayer
+++ get-iplayer-2.78/get_iplayer
@@ -6026,6 +6026,11 @@
 	} 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