mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-10-28 04:44:11 -07:00
add resume function to command-line download mode
This commit is contained in:
parent
5c7093daf0
commit
3c4189e3ac
@ -292,7 +292,11 @@ check_flags() {
|
|||||||
if [ ! -d "$dl_dir" ]; then
|
if [ ! -d "$dl_dir" ]; then
|
||||||
mkdir -p "$dl_dir" || seppuku "Error creating directory: $dl_dir"
|
mkdir -p "$dl_dir" || seppuku "Error creating directory: $dl_dir"
|
||||||
fi
|
fi
|
||||||
run "-cd $dl_dir" "$@"
|
if ((IS_RESUME == 1)); then
|
||||||
|
run "-crd" "$dl_dir" "$@"
|
||||||
|
else
|
||||||
|
run "-cd $dl_dir" "$@"
|
||||||
|
fi
|
||||||
exit $?
|
exit $?
|
||||||
elif ((IS_ROFI == 1 && IS_PLAY_FROM_FILE == 1 && IS_CUSTOM_THEME == 1)); then
|
elif ((IS_ROFI == 1 && IS_PLAY_FROM_FILE == 1 && IS_CUSTOM_THEME == 1)); then
|
||||||
run "-f$play_path" -T "$CFG_FILE" "$@"
|
run "-f$play_path" -T "$CFG_FILE" "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user