diff --git a/views/episodes.html b/views/episodes.html index 444bac28e..0d9367453 100644 --- a/views/episodes.html +++ b/views/episodes.html @@ -853,7 +853,7 @@ $('#seriesFileCount').text(seriesDetails['episodeFileCount'] + ' files'); var languages = ''; - if (seriesDetails['languages'] !== 'None') { + if (seriesDetails['languages'] && seriesDetails['languages'] !== 'None') { seriesDetails['languages'].forEach(appendFunc); } diff --git a/views/movie.html b/views/movie.html index 30be3c943..6c646179f 100644 --- a/views/movie.html +++ b/views/movie.html @@ -703,7 +703,7 @@ $('#movieMappedPath').attr("data-original-title", movieDetails['mapped_path']); var languages = ''; - if (movieDetails['languages'] !== 'None') { + if (movieDetails['languages'] && movieDetails['languages'] !== 'None') { movieDetails['languages'].forEach(appendFunc); }