* account for (2010/I), (2010/II), etc naming year numbering scheme

This commit is contained in:
Reinhard Pointner 2011-09-06 14:45:07 +00:00
parent de9b5eb624
commit 9a669276f9
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ public class OpenSubtitlesXmlRpc {
List<MovieDescriptor> movies = new ArrayList<MovieDescriptor>();
// title pattern
Pattern pattern = Pattern.compile("(.+)[(](\\d{4})[)]");
Pattern pattern = Pattern.compile("(.+)[(](\\d{4})([/]I+)?[)]");
for (Map<String, String> movie : movieData) {
// match movie name and movie year from search result