Skip to content

Commit

Permalink
Minor bug-fix: when the specified audio quality does not exist, fallb…
Browse files Browse the repository at this point in the history
…ack to the best audio quality available.
  • Loading branch information
trizen committed Sep 20, 2024
1 parent 8e5e296 commit 3494825
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/WWW/YoutubeViewer/Itags.pm
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,13 @@ sub find_streaming_url {
$found_resolution = $res;
last;
}

$streaming = $self->_find_streaming_url(%args, resolution => $res, audio_quality => 'best');

if (defined($streaming)) {
$found_resolution = $res;
last;
}
}
}

Expand Down

0 comments on commit 3494825

Please sign in to comment.