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-06-16 16:21:36 +08:00
parent 64cae6a6bc
commit 3f6d9ffd1f
1 changed files with 2 additions and 2 deletions

View File

@ -1143,7 +1143,7 @@ public class MediaBindingBean {
return getSeriesInfo();
}
private final Resource<MovieInfo> primaryMovieInfo = Resource.lazy(() -> TheMovieDB.getMovieInfo(getMovie(), Locale.ENGLISH, false));
private final Resource<MovieInfo> primaryMovieInfo = Resource.lazy(() -> TheMovieDB.getMovieInfo(getMovie(), Locale.US, false));
private final Resource<MovieInfo> 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);