* @return
*/
public List<ImdbSpoiler> getTitleTrivia(String imdbId) {
Map<String, String> args = new HashMap<String, String>();
args.put(TCONST, imdbId);
ResponseDetail response = ApiBuilder.getResponse("title/trivia", args);
if (response == null) {
return Collections.emptyList();
} else {
List<ImdbSpoiler> spoilers = new ArrayList<ImdbSpoiler>();
for (ImdbSpoiler spoiler : response.getSpoilt()) {
spoiler.setSpoiler("spoilt");
spoilers.add(spoiler);
}
for (ImdbSpoiler spoiler : response.getUnspoilt()) {
spoiler.setSpoiler("unspoilt");
spoilers.add(spoiler);
}
return spoilers;