* use short country code

{
         "iso_3166_1":"US",
         "name":"United States of America"
      }
This commit is contained in:
Reinhard Pointner 2015-05-05 03:29:20 +00:00
parent e238790d4d
commit 73dddd93a2
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ public class TMDbClient implements MovieIdentificationService {
List<String> productionCountries = new ArrayList<String>();
try {
for (JSONObject it : jsonList(response.get("production_countries"))) {
productionCountries.add((String) it.get("name"));
productionCountries.add((String) it.get("iso_3166_1"));
}
} catch (Exception e) {
Logger.getLogger(getClass().getName()).log(Level.WARNING, "Illegal production_countries data: " + response);