We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f68b178 commit 416fe5cCopy full SHA for 416fe5c
lib/WWW/YoutubeViewer.pm
@@ -728,6 +728,9 @@ sub _extract_streaming_urls {
728
# Cipher streaming URLs are currently unsupported, so let's filter them out.
729
@results = grep { not exists $_->{cipher} } @results;
730
731
+ # Keep only streams with contentLength > 0.
732
+ @results = grep { exists($_->{contentLength}) and $_->{contentLength} > 0 } @results;
733
+
734
if ($self->get_debug) {
735
my $count = scalar(@results);
736
say STDERR ":: Found $count streaming URLs...";
0 commit comments