Skip to content

Commit

Permalink
Debug info.
Browse files Browse the repository at this point in the history
  • Loading branch information
trizen committed Sep 4, 2020
1 parent 326ac04 commit 136dbdf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/WWW/YoutubeViewer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,11 @@ sub get_streaming_urls {
}
}

if ($self->get_debug) {
my $count = scalar(@streaming_urls);
say STDERR ":: Found $count streaming URLs...";
}

# Try again with youtube-dl
if (!@streaming_urls or $info{status} =~ /fail|error/i) {
@streaming_urls = $self->_fallback_extract_urls($videoID);
Expand Down

0 comments on commit 136dbdf

Please sign in to comment.