1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-03-09 22:09:47 -04:00

Ignore N/A values

This commit is contained in:
Reinhard Pointner 2016-02-05 10:49:36 +00:00
parent c5564f60c8
commit 0273408145

View File

@ -238,6 +238,6 @@ public class OMDbClient implements MovieIdentificationService {
if (value == null || value.isEmpty())
return emptyList();
return regex.splitAsStream(value).map(String::trim).map(toObject).collect(toList());
return regex.splitAsStream(value).map(String::trim).filter(s -> !s.equals("N/A")).map(toObject).collect(toList());
}
}