mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 00:38:52 -05:00
* strip away path separators like / and \ in movie names as well
This commit is contained in:
parent
94d1e91b22
commit
fcc2ff6b7b
@ -2,6 +2,8 @@
|
||||
package net.sourceforge.filebot.ui.panel.rename;
|
||||
|
||||
|
||||
import static net.sourceforge.tuned.FileUtilities.*;
|
||||
|
||||
import java.util.Formatter;
|
||||
|
||||
import net.sourceforge.filebot.similarity.Match;
|
||||
@ -32,6 +34,7 @@ class MovieFormatter implements MatchFormatter {
|
||||
if (video.getPartCount() > 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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user