aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/WWW/FairViewer.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/WWW/FairViewer.pm b/lib/WWW/FairViewer.pm
index f75931e..736f549 100644
--- a/lib/WWW/FairViewer.pm
+++ b/lib/WWW/FairViewer.pm
@@ -969,6 +969,11 @@ sub _extract_streaming_urls {
my @results;
if (exists $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}) {
@@ -982,6 +987,11 @@ sub _extract_streaming_urls {
$self->_check_streaming_urls($videoID, \@results);
+ if (grep { $_->{url} =~ /\bsc=yes\b/ } @results) {
+ say STDERR ":: Contains SC = yes" if $self->get_debug;
+ return;
+ }
+
# Keep only streams with contentLength > 0.
@results = grep { $_->{itag} == 22 or (exists($_->{contentLength}) and $_->{contentLength} > 0) } @results;