diff options
-rwxr-xr-x | bin/fair-viewer | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/fair-viewer b/bin/fair-viewer index d50164f..b838f88 100755 --- a/bin/fair-viewer +++ b/bin/fair-viewer @@ -4020,7 +4020,8 @@ sub print_videos { } elsif ($opt =~ /^(?:ap|autoplay)${digit_or_equal_re}(.*)/) { if (my ($id) = get_valid_numbers($#{$videos}, $1)) { - autoplay($yv_utils->get_video_id($videos->[$id])); + local $opt{autoplay_mode} = 1; + play_videos([$videos->[$id]]); } else { warn_no_thing_selected('video'); |