mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 08:48:51 -05:00
* fixed aka title handling for OpenSubtitles (they apparently changed the aka separator)
This commit is contained in:
parent
2fc8d92e03
commit
9664d86944
@ -135,8 +135,8 @@ public class OpenSubtitlesXmlRpc {
|
|||||||
List<MovieDescriptor> movies = new ArrayList<MovieDescriptor>();
|
List<MovieDescriptor> movies = new ArrayList<MovieDescriptor>();
|
||||||
|
|
||||||
for (Map<String, String> movie : movieData) {
|
for (Map<String, String> movie : movieData) {
|
||||||
// get non-aka title (aka titles are separated by Â)
|
// get non-aka title (aka titles were separated by Â, and then aka later on)
|
||||||
Scanner titleScanner = new Scanner(movie.get("title")).useDelimiter("\u00C2");
|
Scanner titleScanner = new Scanner(movie.get("title")).useDelimiter("(\u00C2)|(\\s+aka\\s+)");
|
||||||
|
|
||||||
movies.add(new MovieDescriptor(titleScanner.next().trim(), Integer.parseInt(movie.get("id"))));
|
movies.add(new MovieDescriptor(titleScanner.next().trim(), Integer.parseInt(movie.get("id"))));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user