Fix filenames on webdav issue
This commit is contained in:
@@ -26,7 +26,6 @@ type TorrentManager struct {
|
||||
checksum string
|
||||
api *realdebrid.RealDebrid
|
||||
workerPool chan bool
|
||||
mu *sync.Mutex
|
||||
log *zap.SugaredLogger
|
||||
}
|
||||
|
||||
@@ -40,7 +39,6 @@ func NewTorrentManager(cfg config.ConfigInterface, api *realdebrid.RealDebrid) *
|
||||
requiredVersion: "10.11.2023",
|
||||
api: api,
|
||||
workerPool: make(chan bool, cfg.GetNumOfWorkers()),
|
||||
mu: &sync.Mutex{},
|
||||
log: logutil.NewLogger().Named("manager"),
|
||||
}
|
||||
|
||||
@@ -99,11 +97,7 @@ func NewTorrentManager(cfg config.ConfigInterface, api *realdebrid.RealDebrid) *
|
||||
}
|
||||
|
||||
// get filenames
|
||||
var filenames []string
|
||||
torrent.SelectedFiles.IterCb(func(_ string, file *File) {
|
||||
filenames = append(filenames, file.Path)
|
||||
})
|
||||
|
||||
filenames := torrent.SelectedFiles.Keys()
|
||||
// Map torrents to directories
|
||||
switch t.cfg.GetVersion() {
|
||||
case "v1":
|
||||
|
||||
Reference in New Issue
Block a user