@Override
  protected Void doInBackground()
  {

    String search = "https://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=";
    search += button.getText().replace(" ", "+") + "+imdb";
    try
    {
      URL url = new URL(search);

      URLConnection connection = url.openConnection();

      String line;
      StringBuilder builder = new StringBuilder();
      BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
      while ((line = reader.readLine()) != null)
        builder.append(line);

      JSONObject obj = new JSONObject(builder.toString());
      final JSONArray arr = obj.getJSONObject("responseData").getJSONArray("results");

      for (int i = 0; i < arr.length(); i++)
      {
        String string = arr.getJSONObject(i).getString("url");
        if (string.contains("title/tt"))
        {
          final int start = string.indexOf("/tt");
          if (start >= 0)
          {
            string = string.substring(start + 1);
            search = "http://www.omdbapi.com/?i=" + string.substring(0, string.indexOf("/"));
            url = new URL(search);
            connection = url.openConnection();

            builder = new StringBuilder();
            reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
            while ((line = reader.readLine()) != null)
              builder.append(line);

            obj = new JSONObject(builder.toString());
            button.getImdbInfos()[0] = obj.getString("Title");
            button.getImdbInfos()[1] = obj.getString("Year");
            button.getImdbInfos()[2] = obj.getString("Runtime");
            button.getImdbInfos()[3] = obj.getString("Genre");
            button.getImdbInfos()[4] = obj.getString("Director");
            button.getImdbInfos()[5] = obj.getString("imdbRating");
            button.getImdbInfos()[6] = string;
            DatabaseSaver.save();
            ListManager.reloadList(true);
            break;
          }
        }
      }
    } catch (MalformedURLException ex)
    {
      System.err.println(search);
    } catch (IOException ex)
    {
      System.err.println(search);
    }
    return null;
  }