Lookup by ID only (to avoid TheMovieDB movie/tv mode conflicts)

This commit is contained in:
Reinhard Pointner 2017-02-10 18:08:10 +08:00
parent 9e7263c80f
commit 699795e1d8
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ public final class WebServices {
public static <T extends Datasource> T getService(String name, T... services) { public static <T extends Datasource> T getService(String name, T... services) {
return stream(services).filter(it -> { return stream(services).filter(it -> {
return it.getIdentifier().equalsIgnoreCase(name) || it.getName().equalsIgnoreCase(name); return it.getIdentifier().equalsIgnoreCase(name);
}).findFirst().orElse(null); }).findFirst().orElse(null);
} }