1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* 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

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