From 9664d86944ff26a300c422a6f3dd2a17ac4b07d2 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 13 May 2010 15:13:24 +0000 Subject: [PATCH] * fixed aka title handling for OpenSubtitles (they apparently changed the aka separator) --- source/net/sourceforge/filebot/web/OpenSubtitlesXmlRpc.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/sourceforge/filebot/web/OpenSubtitlesXmlRpc.java b/source/net/sourceforge/filebot/web/OpenSubtitlesXmlRpc.java index 1ffaa1b3..408373ca 100644 --- a/source/net/sourceforge/filebot/web/OpenSubtitlesXmlRpc.java +++ b/source/net/sourceforge/filebot/web/OpenSubtitlesXmlRpc.java @@ -135,8 +135,8 @@ public class OpenSubtitlesXmlRpc { List movies = new ArrayList(); for (Map movie : movieData) { - // get non-aka title (aka titles are separated by Â) - Scanner titleScanner = new Scanner(movie.get("title")).useDelimiter("\u00C2"); + // get non-aka title (aka titles were separated by Â, and then aka later on) + Scanner titleScanner = new Scanner(movie.get("title")).useDelimiter("(\u00C2)|(\\s+aka\\s+)"); movies.add(new MovieDescriptor(titleScanner.next().trim(), Integer.parseInt(movie.get("id")))); }