This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

tools.flaxget: continue downloads

+6 -16
+6 -16
tools/flaxget/flaxget.sh
··· 63 63 if [[ -n "$file" ]]; then 64 64 # Extract just the filename from the path 65 65 filename=$(basename "$file") 66 - if [[ -f "$filename" ]]; then 67 - echo "File already exists: $filename (skipping download)" 68 - else 69 - echo "$FLAX_URL/$file" >> "$TMPFILE" 70 - fi 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 - aria2c --http-user="$FLAX_USER" --http-passwd="$FLAX_PASS" -i "$TMPFILE" --console-log-level=warn & 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 - echo "All selected files already exist, nothing to download." 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 - # Extract just the filename from the path 124 - filename=$(basename "$file") 125 - if [[ -f "$filename" ]]; then 126 - echo "File already exists: $filename (skipping download)" 127 - else 128 - echo "$FLAX_URL/$file" >> "$TMPFILE" 129 - fi 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 - aria2c --http-user="$FLAX_USER" --http-passwd="$FLAX_PASS" -i "$TMPFILE" 126 + aria2c --continue=true --http-user="$FLAX_USER" --http-passwd="$FLAX_PASS" -i "$TMPFILE" 137 127 else 138 - echo "All selected files already exist, nothing to download." 128 + echo "No files to download." 139 129 fi 140 130 fi 141 131