Permalink
Browse files

Fixed compiler error

  • Loading branch information...
1 parent 1d9fde5 commit b995517c4561e69ce1895ddfd471ee9217e4522b @modmax modmax committed Dec 22, 2016
Showing with 4 additions and 4 deletions.
  1. +4 −4 yamj/src/main/java/com/moviejukebox/plugin/TheMovieDbPlugin.java
@@ -506,17 +506,17 @@ private static void copyMovieInfo(MovieInfo moviedb, Movie movie) {
if (!moviedb.getSpokenLanguages().isEmpty() && OverrideTools.checkOverwriteLanguage(movie, TMDB_PLUGIN_ID)) {
StringBuilder movieLanguage = new StringBuilder();
- String isoCode = moviedb.getSpokenLanguages().get(0).getIsoCode();
- if (StringTools.isValidString(isoCode)) {
- movieLanguage.append(MovieFilenameScanner.determineLanguage(isoCode));
+ String langCode = moviedb.getSpokenLanguages().get(0).getCode();
+ if (StringTools.isValidString(langCode)) {
+ movieLanguage.append(MovieFilenameScanner.determineLanguage(langCode));
}
if (moviedb.getSpokenLanguages().size() > 1) {
for (Language lang : moviedb.getSpokenLanguages()) {
if (movieLanguage.length() > 0) {
movieLanguage.append(LANGUAGE_DELIMITER);
}
- movieLanguage.append(MovieFilenameScanner.determineLanguage(lang.getIsoCode()));
+ movieLanguage.append(MovieFilenameScanner.determineLanguage(lang.getCode()));
}
}

0 comments on commit b995517

Please sign in to comment.