Skip to content

Commit

Permalink
ensure video present in 1080p HLS streams
Browse files Browse the repository at this point in the history
Audio stream may be returned even if video is not available.

Closes #405
  • Loading branch information
notnac committed May 28, 2022
1 parent 85656e5 commit c9d2f17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion get_iplayer
Original file line number Diff line number Diff line change
Expand Up @@ -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 !~ /<html/i ) {
$data->{$key2} = $stm2;
if ( $key2 =~ /dashfhd/ || $xvs =~ /video=${xvi}000/) {
$data->{$key2} = $stm2;
}
}
}
}
Expand Down

0 comments on commit c9d2f17

Please sign in to comment.