diff --git a/VERSION b/VERSION index eb49d7c..39e898a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.7 +0.7.1 diff --git a/src/main/java/it/garambo/retrosearch/news/scheduled/NewsScheduledTask.java b/src/main/java/it/garambo/retrosearch/news/scheduled/NewsScheduledTask.java index 6f395ec..542ac0c 100644 --- a/src/main/java/it/garambo/retrosearch/news/scheduled/NewsScheduledTask.java +++ b/src/main/java/it/garambo/retrosearch/news/scheduled/NewsScheduledTask.java @@ -38,9 +38,10 @@ private void updateNews() throws Exception { .execute( () -> { for (Locale locale : locales) { + String language = locale.getLanguage().toLowerCase(); + String country = locale.getCountry().toLowerCase(); try { - List
articles = - apiClient.fetchNews(locale.getLanguage(), locale.getCountry()).articles(); + List
articles = apiClient.fetchNews(language, country).articles(); newArticles.put(locale.getDisplayCountry(), articles); log.info("Fetched news for {}", locale); Thread.sleep(settings.getRateLimiter()); diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 167c4a5..04262f7 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -6,7 +6,7 @@ retrosearch.html.version=3.2 retrosearch.news.enable=${NEWS_ACTIVE:false} retrosearch.news.api.key=${NEWS_API_KEY:} retrosearch.news.api.rate.limiter=${NEWS_API_RATE_LIMITER:3000} -retrosearch.news.api.locales=${NEWS_API_LOCALES:en_US,en_UK,it_IT,de_DE} +retrosearch.news.api.locales=${NEWS_API_LOCALES:en_US,en_GB,it_IT,de_DE} retrosearch.sports.football.enable=${FOOTBALL_API_ACTIVE:false} retrosearch.sports.football.api.key=${FOOTBALL_API_KEY:}