diff options
author | trizen <trizen@protonmail.com> | 2020-05-29 22:36:30 +0300 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-06-06 21:38:51 -0500 |
commit | 619a1b5206d76d7f4d7722567b6d958c327b6824 (patch) | |
tree | 3310661339f941e2e922473ead5d3175d92bcdda | |
parent | c8e10c6d9f14f52718d623416db7b1e21a5314f2 (diff) | |
download | fair-viewer-619a1b5206d76d7f4d7722567b6d958c327b6824.tar.lz fair-viewer-619a1b5206d76d7f4d7722567b6d958c327b6824.tar.xz fair-viewer-619a1b5206d76d7f4d7722567b6d958c327b6824.zip |
Removed the `--autohide` option, in favor of `--skip-watched`.
Signed-off-by: Jesús <heckyel@hyperbola.info>
-rwxr-xr-x | bin/fair-viewer | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/bin/fair-viewer b/bin/fair-viewer index b06dcda..dd721bb 100755 --- a/bin/fair-viewer +++ b/bin/fair-viewer @@ -238,7 +238,6 @@ my %CONFIG = ( downloads_dir => curdir(), keep_original_video => 0, download_and_play => 0, - autohide_watched => 0, skip_watched => 0, remember_watched => 0, watched_file => $watched_file, @@ -762,7 +761,6 @@ usage: $execname [options] ([url] | [keywords]) --max-seconds=i : ignore videos longer than i seconds --min-seconds=i : ignore videos shorter than i seconds --get-term-width! : allow $execname to read your terminal width - --autohide! : automatically hide watched videos --skip-watched! : don't play already watched videos --highlight! : remember and highlight selected videos --confirm! : show a confirmation message after each play @@ -1603,7 +1601,6 @@ sub parse_arguments { 'get-term-width!' => \$opt{get_term_width}, 'page=i' => \$opt{page}, 'novideo|no-video|n|audio!' => \$opt{novideo}, - 'autohide!' => \$opt{autohide_watched}, 'highlight!' => \$opt{highlight_watched}, 'skip-watched!' => \$opt{skip_watched}, 'results=i' => \$opt{maxResults}, @@ -4116,10 +4113,6 @@ sub print_videos { if (@for_play and not play_videos([@{$videos}[@for_play]])) { __SUB__->($results); } - - if ($opt{autohide_watched}) { - splice(@{$videos}, $key, 1) for @for_play; - } } else { push @for_search, $key; |