Add accidental removal fix
This commit is contained in:
@@ -535,8 +535,12 @@ func (t *TorrentManager) initializeDirectoryMaps() {
|
||||
// create directory maps
|
||||
for _, directory := range t.Config.GetDirectories() {
|
||||
t.DirectoryMap.Set(directory, cmap.New[*Torrent]())
|
||||
// t.RootNode.AddChild(fs.NewFileNode(directory, true))
|
||||
}
|
||||
// create special directories
|
||||
t.DirectoryMap.Set(config.ALL_TORRENTS, cmap.New[*Torrent]())
|
||||
t.DirectoryMap.Set(config.DOWNLOADS, cmap.New[*Torrent]())
|
||||
t.DirectoryMap.Set(config.DUMPED_TORRENTS, cmap.New[*Torrent]())
|
||||
t.DirectoryMap.Set(config.UNPLAYABLE_TORRENTS, cmap.New[*Torrent]())
|
||||
}
|
||||
|
||||
func (t *TorrentManager) getTorrentFilename(torrent *Torrent) string {
|
||||
|
||||
Reference in New Issue
Block a user