Revert because it impacts repair

This commit is contained in:
Ben Sarmiento
2023-11-23 00:37:06 +01:00
parent 3c12b92e61
commit d004eec2b7

View File

@@ -405,7 +405,7 @@ func hashStringToFh(s string) (fh uint64) {
func (t *TorrentManager) getName(name, originalName string) string { func (t *TorrentManager) getName(name, originalName string) string {
// drop the extension from the name // drop the extension from the name
if t.cfg.EnableRetainFolderNameExtension() { if t.cfg.EnableRetainFolderNameExtension() && strings.Contains(name, originalName) {
return name return name
} else { } else {
ret := strings.TrimSuffix(originalName, ".mp4") ret := strings.TrimSuffix(originalName, ".mp4")