/** * The Query parameter is used to find a specific movie trailer. Will return a Json doc as String * with a Link and Id to the Trailer. The Search Query will be cleaned and then the APIConnector * returns a JSON converted String. * * @param query -Search query for specific Trailer * @return String */ public String trailerByImdb(String query) { query = apiC.getTrailerTitle(qc.cleanImdbID(query)); if (query == null) { return null; } else { return gson.toJson( apiC.getTrailer( "http://simpleapi.traileraddict.com/" + qc.cleanTrailerTitle(query) + "/trailer")); } }