1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-04 16:35:08 -05:00

* 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

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