alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
tools.flaxget: continue downloads
author
lassulus
date
1 year ago
(Jul 9, 2025, 8:41 PM CEST)
commit
d9a698b3
d9a698b39b88871dc92bdd898220ffd9876eceb4
parent
5ad51453
5ad514536a603a0a06752f70c9aea833e7d61b02
+6
-16
1 changed file
Expand all
Collapse all
Unified
Split
tools
flaxget
flaxget.sh
+6
-16
tools/flaxget/flaxget.sh
View file
Reviewed
···
63
63
if [[ -n "$file" ]]; then
64
64
# Extract just the filename from the path
65
65
filename=$(basename "$file")
66
66
-
if [[ -f "$filename" ]]; then
67
67
-
echo "File already exists: $filename (skipping download)"
68
68
-
else
69
69
-
echo "$FLAX_URL/$file" >> "$TMPFILE"
70
70
-
fi
66
66
+
echo "$FLAX_URL/$file" >> "$TMPFILE"
71
67
FILES_ARRAY+=("$filename")
72
68
fi
73
69
done <<< "$SELECTED"
···
76
72
if [[ -s "$TMPFILE" ]]; then
77
73
echo "Starting background downloads..."
78
74
# Start aria2c in background with progress bar
79
79
-
aria2c --http-user="$FLAX_USER" --http-passwd="$FLAX_PASS" -i "$TMPFILE" --console-log-level=warn &
75
75
+
aria2c --continue=true --http-user="$FLAX_USER" --http-passwd="$FLAX_PASS" -i "$TMPFILE" --console-log-level=warn &
80
76
ARIA_PID=$!
81
77
else
82
82
-
echo "All selected files already exist, nothing to download."
78
78
+
echo "No files to download."
83
79
ARIA_PID=""
84
80
fi
85
81
···
120
116
121
117
while IFS= read -r file; do
122
118
if [[ -n "$file" ]]; then
123
123
-
# Extract just the filename from the path
124
124
-
filename=$(basename "$file")
125
125
-
if [[ -f "$filename" ]]; then
126
126
-
echo "File already exists: $filename (skipping download)"
127
127
-
else
128
128
-
echo "$FLAX_URL/$file" >> "$TMPFILE"
129
129
-
fi
119
119
+
echo "$FLAX_URL/$file" >> "$TMPFILE"
130
120
fi
131
121
done <<< "$SELECTED"
132
122
133
123
# Only download if there are files to download
134
124
if [[ -s "$TMPFILE" ]]; then
135
125
echo "Downloading selected files..."
136
136
-
aria2c --http-user="$FLAX_USER" --http-passwd="$FLAX_PASS" -i "$TMPFILE"
126
126
+
aria2c --continue=true --http-user="$FLAX_USER" --http-passwd="$FLAX_PASS" -i "$TMPFILE"
137
127
else
138
138
-
echo "All selected files already exist, nothing to download."
128
128
+
echo "No files to download."
139
129
fi
140
130
fi
141
131