more TODO

This commit is contained in:
Jannik 2018-04-29 14:28:12 +02:00
parent 74e8783082
commit 48b9c99baa
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,7 @@ public class OMDbAPIController implements Runnable {
@Override
public void run() {
LOGGER.info("Querying omdbAPI ...");
JsonObject object;
object = getByTitle(mainWindowController.getCurrentTitle());
if (object == null) return;
@ -179,6 +180,7 @@ public class OMDbAPIController implements Runnable {
if (searchObject.getString("Response", "").equals("True")) {
for (JsonValue movie : searchObject.get("Search").asArray()) {
// get first entry from the array and set object = movie
// TODO if the search was successful, we should add the wrong and correct title to a list, for later speedup
return movie.asObject().getString("Title", "");
}
} else {