Commit the progress made (so far) on fixing the zims downloader

This commit is contained in:
Greg Hellings
2025-10-16 10:46:02 -05:00
parent 6744f6ac34
commit 0b6f269d35
3 changed files with 12 additions and 66 deletions
+6 -5
View File
@@ -20,11 +20,11 @@ const BASE = "https://download.kiwix.org/zim"
func getTypes() []string {
return []string{
"phet",
"wikipedia",
"wiktionary",
"wikiversity",
"wikisource",
"wikibooks",
// "wikipedia",
// "wiktionary",
// "wikiversity",
// "wikisource",
// "wikibooks",
"gutenberg",
"ted",
}
@@ -92,6 +92,7 @@ func getHash(ch chan result, file, category, language string) {
url="%s/%s/%s.torrent";
hash="sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
backend="transmission";
postUnpack="mkdir -p $downloadedDirectory/tmp; mv $downloadedDirectory/*.zim $downloadedDirectory/tmp";
}`, BASE, category, file),
)
out, err := cmd.Output()