diff options
author | trizen <trizen@protonmail.com> | 2020-06-05 23:34:47 +0300 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-06-06 22:10:08 -0500 |
commit | 61369146c3474fe44c379a9d67e70d5d35c15409 (patch) | |
tree | ac95062332193d843823f59f2a8cc24c33dbda5a | |
parent | 751dd4e0d6ac3fe6a45c51e742a2b73ba69a4eed (diff) | |
download | fair-viewer-61369146c3474fe44c379a9d67e70d5d35c15409.tar.lz fair-viewer-61369146c3474fe44c379a9d67e70d5d35c15409.tar.xz fair-viewer-61369146c3474fe44c379a9d67e70d5d35c15409.zip |
- Allow playback to be stopped with CTRL+C during `:autoplay=i`.
Signed-off-by: Jesús <heckyel@hyperbola.info>
-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'); |