Use Locale.US as default locale for TheMovieDB requests (because US is likely cached due to language preferences, while ENGLISH may not be)

This commit is contained in:
Reinhard Pointner 2017-11-21 21:13:47 +01:00
parent 14dd2c3a22
commit b48cbfa3cb
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ public class TMDbClient implements MovieIdentificationService, ArtworkProvider {
if (extendedInfo) {
try {
Object response = request(path + "/alternative_titles", emptyMap(), Locale.ENGLISH);
Object response = request(path + "/alternative_titles", emptyMap(), Locale.US);
streamJsonObjects(response, key).map(n -> {
return getString(n, "title");
}).filter(Objects::nonNull).filter(n -> n.length() >= 2).forEach(alternativeTitles::add);