diff options
-rw-r--r-- | lib/WWW/FairViewer.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/WWW/FairViewer.pm b/lib/WWW/FairViewer.pm index 47e87c4..d117b95 100644 --- a/lib/WWW/FairViewer.pm +++ b/lib/WWW/FairViewer.pm @@ -824,7 +824,7 @@ sub _extract_streaming_urls { @results = grep { not exists $_->{cipher} } @results; # Keep only streams with contentLength > 0. - @results = grep { exists($_->{contentLength}) and $_->{contentLength} > 0 } @results; + @results = grep { $_->{itag} == 22 or (exists($_->{contentLength}) and $_->{contentLength} > 0) } @results; # Detect livestream if (!@results and exists($json->{streamingData}) and exists($json->{streamingData}{hlsManifestUrl})) { |