From 3c4189e3acef60ffa266bce3828fa77acd62c387 Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Thu, 3 Mar 2022 23:42:48 -0800 Subject: [PATCH] add resume function to command-line download mode --- aniwrapper | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aniwrapper b/aniwrapper index 168c847..7ec269f 100755 --- a/aniwrapper +++ b/aniwrapper @@ -292,7 +292,11 @@ check_flags() { if [ ! -d "$dl_dir" ]; then mkdir -p "$dl_dir" || seppuku "Error creating directory: $dl_dir" fi - run "-cd $dl_dir" "$@" + if ((IS_RESUME == 1)); then + run "-crd" "$dl_dir" "$@" + else + run "-cd $dl_dir" "$@" + fi exit $? elif ((IS_ROFI == 1 && IS_PLAY_FROM_FILE == 1 && IS_CUSTOM_THEME == 1)); then run "-f$play_path" -T "$CFG_FILE" "$@"