1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 16:58:51 -05:00

* strip away path separators like / and \ in movie names as well

This commit is contained in:
Reinhard Pointner 2010-02-04 14:05:52 +00:00
parent 94d1e91b22
commit fcc2ff6b7b

View File

@ -2,6 +2,8 @@
package net.sourceforge.filebot.ui.panel.rename; package net.sourceforge.filebot.ui.panel.rename;
import static net.sourceforge.tuned.FileUtilities.*;
import java.util.Formatter; import java.util.Formatter;
import net.sourceforge.filebot.similarity.Match; import net.sourceforge.filebot.similarity.Match;
@ -32,6 +34,7 @@ class MovieFormatter implements MatchFormatter {
if (video.getPartCount() > 1) if (video.getPartCount() > 1)
name.format(" CD%d", video.getPartIndex() + 1); name.format(" CD%d", video.getPartIndex() + 1);
return name.out().toString(); // remove path separators if the name contains any / or \
return removePathSeparators(name.out().toString());
} }
} }