aboutsummaryrefslogtreecommitdiff
path: root/multimedia/get_iplayer/livetv-587146
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/get_iplayer/livetv-587146')
-rw-r--r--multimedia/get_iplayer/livetv-58714619
1 files changed, 19 insertions, 0 deletions
diff --git a/multimedia/get_iplayer/livetv-587146 b/multimedia/get_iplayer/livetv-587146
new file mode 100644
index 0000000000000..c9130d8b2cb2d
--- /dev/null
+++ b/multimedia/get_iplayer/livetv-587146
@@ -0,0 +1,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