Lookup by ID only (to avoid TheMovieDB movie/tv mode conflicts)
This commit is contained in:
parent
9e7263c80f
commit
699795e1d8
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue