aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/WWW/FairViewer.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/WWW/FairViewer.pm b/lib/WWW/FairViewer.pm
index bb23de7..037f469 100644
--- a/lib/WWW/FairViewer.pm
+++ b/lib/WWW/FairViewer.pm
@@ -922,10 +922,12 @@ sub get_streaming_urls {
}
if ($url->{type} =~ /\bvideo\b/i) {
- if ($self->get_prefer_mp4 and $url->{type} =~ /\bmp4\b/i) {
- push @video_urls, $url;
+ if ($url->{type} =~ /\bav[0-9]+\b/i) { # AV1
+ if ($self->get_prefer_av1) {
+ push @video_urls, $url;
+ }
}
- elsif ($self->get_prefer_av1 and $url->{type} =~ /\bav[0-9]+\b/i) {
+ elsif ($self->get_prefer_mp4 and $url->{type} =~ /\bmp4\b/i) {
push @video_urls, $url;
}
}