From 3f6d9ffd1ff60a4c0b42576b9eab8e2f34aacb6e Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 16 Jun 2017 16:21:36 +0800 Subject: [PATCH] Use Locale.US as default locale for TheMovieDB requests (because US is likely cached due to language preferences, while ENGLISH may not be) --- source/net/filebot/format/MediaBindingBean.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/format/MediaBindingBean.java b/source/net/filebot/format/MediaBindingBean.java index de444767..6445b83d 100644 --- a/source/net/filebot/format/MediaBindingBean.java +++ b/source/net/filebot/format/MediaBindingBean.java @@ -1143,7 +1143,7 @@ public class MediaBindingBean { return getSeriesInfo(); } - private final Resource primaryMovieInfo = Resource.lazy(() -> TheMovieDB.getMovieInfo(getMovie(), Locale.ENGLISH, false)); + private final Resource primaryMovieInfo = Resource.lazy(() -> TheMovieDB.getMovieInfo(getMovie(), Locale.US, false)); private final Resource extendedMovieInfo = Resource.lazy(() -> getMovieInfo(getMovie().getLanguage(), true)); public MovieInfo getPrimaryMovieInfo() { @@ -1166,7 +1166,7 @@ public class MediaBindingBean { Movie m = getMovie(); if (m.getTmdbId() > 0) - return TheMovieDB.getMovieInfo(m, locale == null ? Locale.ENGLISH : locale, extendedInfo); + return TheMovieDB.getMovieInfo(m, locale == null ? Locale.US : locale, extendedInfo); if (m.getImdbId() > 0) return OMDb.getMovieInfo(m);