Skip to content

Commit

Permalink
todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed Oct 29, 2024
1 parent 470ed5f commit d743cc5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
[![discord](https://img.shields.io/discord/1149744662131777546?style=flat-square&labelColor=5c5c5c&color=007D9C)](https://discord.gg/QNbTeGHBRm)
[![go pkg](https://pkg.go.dev/badge/github.com/nothub/mrpack-install.svg)](https://pkg.go.dev/github.com/nothub/mrpack-install)

A cli application for installing Minecraft servers
and [Modrinth](https://modrinth.com/) [modpacks](https://docs.modrinth.com/docs/modpacks/format_definition/).
A cli application for installing Minecraft servers and [Modrinth](https://modrinth.com/) [modpacks](https://support.modrinth.com/en/articles/8802351-modrinth-modpack-format-mrpack).

---

Expand Down
7 changes: 7 additions & 0 deletions web/download/multi.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ func (g *Downloader) Download(baseDir string) {
absPath, _ := filepath.Abs(filepath.Join(baseDir, dl.Path))
success := false
for _, link := range dl.Urls {

// TODO: check url host based on modrinth rules
// cdn.modrinth.com
// github.com
// raw.githubusercontent.com
// gitlab.com

// retry when download failed
for retries := 0; retries < g.Retries; retries++ {
// try download
Expand Down

0 comments on commit d743cc5

Please sign in to comment.