This commit is contained in:
Ben Sarmiento
2023-10-24 04:53:26 +02:00
parent 21cbb16b88
commit 03db4b0c00
4 changed files with 5 additions and 31 deletions

View File

@@ -92,7 +92,7 @@ func handleSingleTorrent(requestPath string, w http.ResponseWriter, r *http.Requ
directory := path.Dir(requestPath)
torrentName := path.Base(requestPath)
sameNameTorrents := findAllTorrentsWithName(t, directory, torrentName)
sameNameTorrents := t.FindAllTorrentsWithName(directory, torrentName)
if len(sameNameTorrents) == 0 {
return nil, fmt.Errorf("cannot find directory when generating single torrent: %s", requestPath)
}