From 231ffcf09611bf6b114a98b03750a90852af9883 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 25 Jul 2016 17:40:26 +0800 Subject: [PATCH] Make String.stripReleaseInfo() available in scripting context @see https://www.filebot.net/forums/viewtopic.php?f=10&t=3976#p22318 --- source/net/filebot/cli/ScriptShellMethods.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/net/filebot/cli/ScriptShellMethods.java b/source/net/filebot/cli/ScriptShellMethods.java index d52213e6..91d3c54b 100644 --- a/source/net/filebot/cli/ScriptShellMethods.java +++ b/source/net/filebot/cli/ScriptShellMethods.java @@ -279,6 +279,10 @@ public class ScriptShellMethods { return Normalization.normalizePunctuation(self); } + public static String stripReleaseInfo(String self) { + return MediaDetection.stripReleaseInfo(self, false); + } + // Web and File IO helpers public static ByteBuffer fetch(URL self) throws IOException {