This commit is contained in:
Ben Sarmiento
2023-12-02 20:37:40 +01:00
parent e4bdecd979
commit 3df201cc20
4 changed files with 42 additions and 13 deletions

View File

@@ -35,7 +35,8 @@ func HandleDeleteFile(directory, torrentName, fileName string, t *torrent.Torren
if t.CheckDeletedState(torrent) {
t.Delete(torrentName, true, true)
} else {
t.UpdateTorrentResponseCache(torrent)
updatedPaths := t.UpdateTorrentResponseCache(torrent)
t.TriggerHookOnLibraryUpdate(updatedPaths)
}
return nil
}