From e5e4a38cf14d85ae758cef9de602b8f54eb23bd8 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Wed, 13 May 2026 11:01:33 -0500 Subject: [PATCH] chore: begin updating zim updater --- pkgs/zim/updater.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/zim/updater.go b/pkgs/zim/updater.go index 2be4745..618661d 100644 --- a/pkgs/zim/updater.go +++ b/pkgs/zim/updater.go @@ -83,7 +83,7 @@ func getHash(ch chan result, file, category, language string) { // TODO: Only call this if the file doesn't already have a hash // in the existing file fmt.Printf("Fetching hash for %s\n", file) - cmd := exec.Command( "nix-prefetch-url", fmt.Sprintf("%s/%s/%s.torrent", BASE, category, file)) + cmd := exec.Command( "nix-prefetch-url", fmt.Sprintf("%s/%s/%s", BASE, category, file)) out, err := cmd.Output() if err != nil { fmt.Printf("Error fetching hash for %s (category: %s, language: %s): %v\n", file, category, language, err) @@ -115,6 +115,7 @@ type result struct { type Zim struct { Name string `json:"name"` + Version string `json:"version"` Hash string `json:"hash"` }