From c9d2f17ffbd74dcb1b24dbdd06c090a1a3f9bb1a Mon Sep 17 00:00:00 2001 From: notnac <32044623+notnac@users.noreply.github.com> Date: Mon, 28 Mar 2022 20:51:25 +0100 Subject: [PATCH] ensure video present in 1080p HLS streams Audio stream may be returned even if video is not available. Closes #405 --- get_iplayer | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/get_iplayer b/get_iplayer index c9df2a5d..a2602406 100755 --- a/get_iplayer +++ b/get_iplayer @@ -6510,7 +6510,9 @@ sub get_stream_data { } my $xvs = main::request_url_retry( $ua, $stm2->{streamurl}, 3, undef, undef, 1, undef, 1 ); if ( $xvs && $xvs !~ /{$key2} = $stm2; + if ( $key2 =~ /dashfhd/ || $xvs =~ /video=${xvi}000/) { + $data->{$key2} = $stm2; + } } } }