Remove expose full path

This commit is contained in:
Ben Sarmiento
2024-01-30 02:50:37 +01:00
parent 108607b4dd
commit 5ce8327053
3 changed files with 3 additions and 13 deletions

View File

@@ -115,11 +115,6 @@ func (t *TorrentManager) GetPath(file *File) string {
if !t.Config.ShouldIgnoreRenames() && file.Rename != "" {
return file.Rename
}
if t.Config.ShouldExposeFullPath() {
filename := strings.TrimPrefix(file.Path, "/")
filename = strings.ReplaceAll(filename, "/", " - ")
return filename
}
filename := filepath.Base(file.Path)
return filename
}