From fcc2ff6b7be0d7b2d05b4049517b8ef28d565413 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 4 Feb 2010 14:05:52 +0000 Subject: [PATCH] * strip away path separators like / and \ in movie names as well --- .../sourceforge/filebot/ui/panel/rename/MovieFormatter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/ui/panel/rename/MovieFormatter.java b/source/net/sourceforge/filebot/ui/panel/rename/MovieFormatter.java index 0a2c37dd..56bac05c 100644 --- a/source/net/sourceforge/filebot/ui/panel/rename/MovieFormatter.java +++ b/source/net/sourceforge/filebot/ui/panel/rename/MovieFormatter.java @@ -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()); } }