Hotfixes
Some checks failed
GoReleaser / goreleaser (push) Has been cancelled
Release Docker Build / docker (push) Has been cancelled

This commit is contained in:
Mukhtar Akere
2025-03-02 14:33:58 +01:00
parent b1a3d8b762
commit 1c06407900
3 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ tmp_dir = "tmp"
[build] [build]
args_bin = ["--config", "data/"] args_bin = ["--config", "data/"]
bin = "./tmp/main" bin = "./tmp/main"
cmd = "bash -c 'go build -ldflags \"-X github.com/sirrobot01/debrid-blackhole/pkg/version.Version=0.0.4 -X github.com/sirrobot01/debrid-blackhole/pkg/version.Channel=beta\" -o ./tmp/main .'" cmd = "bash -c 'go build -ldflags \"-X github.com/sirrobot01/debrid-blackhole/pkg/version.Version=0.0.0 -X github.com/sirrobot01/debrid-blackhole/pkg/version.Channel=beta\" -o ./tmp/main .'"
delay = 1000 delay = 1000
exclude_dir = ["assets", "tmp", "vendor", "testdata", "data"] exclude_dir = ["assets", "tmp", "vendor", "testdata", "data"]
exclude_file = [] exclude_file = []

View File

@@ -24,7 +24,7 @@ func (a *Arr) Refresh() error {
} }
} }
return fmt.Errorf("failed to refresh: %v(status: %s)", err, resp.Status) return fmt.Errorf("failed to refresh: %v", err)
} }
func (a *Arr) Blacklist(infoHash string) error { func (a *Arr) Blacklist(infoHash string) error {

View File

@@ -141,10 +141,10 @@ func (ts *TorrentStorage) Delete(hash, category string) {
} }
} }
} }
delete(ts.torrents, key)
if torrent == nil { if torrent == nil {
return return
} }
delete(ts.torrents, key)
// Delete the torrent folder // Delete the torrent folder
if torrent.ContentPath != "" { if torrent.ContentPath != "" {
err := os.RemoveAll(torrent.ContentPath) err := os.RemoveAll(torrent.ContentPath)