Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eget
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eget
Commits
763d5946
Commit
763d5946
authored
Dec 29, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: add aria2 sget_with_mirrors for simultaneous mirror download
parent
73d41b06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
eget
eget
+7
-0
No files found.
eget
View file @
763d5946
...
@@ -1437,6 +1437,13 @@ url_pget()
...
@@ -1437,6 +1437,13 @@ url_pget()
echo
"
$@
"
|
xargs
-
n1
|
download_with_mirroring __aria2
-
i-
echo
"
$@
"
|
xargs
-
n1
|
download_with_mirroring __aria2
-
i-
}
}
# Download file from multiple mirrors simultaneously (TAB-separated for aria2)
sget_with_mirrors
()
{
# aria2 supports multiple URLs for same file separated by TAB
local
tab_urls
=
"
$(
echo
"
$@
"
|
tr
' '
'\t'
)
"
echo
"
$tab_urls
"
|
__aria2
-
i-
}
# use __wget for headers (aria2/axel don't support this natively)
# use __wget for headers (aria2/axel don't support this natively)
url_get_response
()
url_get_response
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment