Ignore N/A values

This commit is contained in:
Reinhard Pointner 2016-02-05 10:49:36 +00:00
parent c5564f60c8
commit 0273408145
1 changed files with 1 additions and 1 deletions

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());
}
}