* fix for short movie names like e.g. "Up 2009"

This commit is contained in:
Reinhard Pointner 2014-05-22 14:08:39 +00:00
parent d53de9b922
commit ba02c192d3
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ public class TMDbClient implements MovieIdentificationService {
String query = (movieYear > 0) ? String.format("%s y:%d", movieName, movieYear) : movieName.toString();
// ignore queries that are too short to yield good results
if (movieName.length() < 3) {
if (movieName.length() < 3 && !(movieName.length() > 1 && movieYear > 0)) {
return emptyList();
}