Browse Source

more TODO

pull/5/head
Jannik 4 years ago
parent
commit
48b9c99baa
  1. 2
      src/main/java/kellerkinder/HomeFlix/controller/OMDbAPIController.java

2
src/main/java/kellerkinder/HomeFlix/controller/OMDbAPIController.java

@ -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 {

Loading…
Cancel
Save

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close