fix: bt resolve

This commit is contained in:
liwei committed 2023-02-10 15:27:15 +08:00
1 parent 0515ce6081
commit e4f86097e8
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -84,7 +84,7 @@ func (f *Fetcher) Resolve(req *base.Request) error {
for i, file := range f.torrent.Files() {
res.Files[i] = &base.FileInfo{
Name: filepath.Base(file.DisplayPath()),
Path: util.Dir(path.Join(f.torrent.Info().Name, file.Path())),
Path: util.Dir(file.Path()),
Size: file.Length(),
}
res.Size += file.Length()