Ignore error when fetching downloads

This commit is contained in:
Ben Sarmiento
2024-02-24 20:27:52 +01:00
parent 6d7c639125
commit b7e6f75f82

View File

@@ -206,7 +206,9 @@ func (t *TorrentManager) mountDownloads() {
for {
downloads, totalDownloads, err := t.Api.GetDownloads(page, offset)
if err != nil {
t.log.Fatalf("Cannot get downloads: %v", err)
// if we get an error, we just stop
t.log.Warnf("Cannot get downloads on page %d: %v", page, err)
continue
}
for i := range downloads {
t.DownloadMap.Set(downloads[i].Filename, &downloads[i])