From 73dddd93a2de7e30739620100f6bfa4248002c5f Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 5 May 2015 03:29:20 +0000 Subject: [PATCH] * use short country code { "iso_3166_1":"US", "name":"United States of America" } --- source/net/filebot/web/TMDbClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/web/TMDbClient.java b/source/net/filebot/web/TMDbClient.java index 8fb13e05..7a8dc17b 100644 --- a/source/net/filebot/web/TMDbClient.java +++ b/source/net/filebot/web/TMDbClient.java @@ -228,7 +228,7 @@ public class TMDbClient implements MovieIdentificationService { List productionCountries = new ArrayList(); 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);