Add accidental removal fix
This commit is contained in:
@@ -15,6 +15,7 @@ func HandleRenameTorrent(directory, torrentName, newName string, torMgr *torrent
|
||||
if !ok {
|
||||
return fmt.Errorf("cannot find torrent %s", torrentName)
|
||||
}
|
||||
// todo: need to remove on all directories
|
||||
torrents.Remove(torrentName)
|
||||
torrents.Set(newName, torrent)
|
||||
torrent.Rename = newName
|
||||
|
||||
Reference in New Issue
Block a user