From 45c549e9e689ec199fc876ae4c0d0c79406e333a Mon Sep 17 00:00:00 2001 From: trizen Date: Tue, 20 Oct 2020 23:51:45 +0300 Subject: Fix previous commit. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jesús --- lib/WWW/FairViewer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/WWW/FairViewer.pm b/lib/WWW/FairViewer.pm index 736f549..e96ed7c 100644 --- a/lib/WWW/FairViewer.pm +++ b/lib/WWW/FairViewer.pm @@ -969,13 +969,13 @@ sub _extract_streaming_urls { my @results; if (exists $json->{streamingData}) { + my $streamingData = $json->{streamingData}; + if (defined $streamingData->{dashManifestUrl}) { say STDERR ":: Contains DASH manifest URL" if $self->get_debug; return; } - my $streamingData = $json->{streamingData}; - if (exists $streamingData->{adaptiveFormats}) { push @results, @{$streamingData->{adaptiveFormats}}; } -- cgit v1.2.3