make sure title and original title are not the same

This commit is contained in:
j 2020-02-05 16:56:14 +01:00
parent ecafcbdb26
commit c4ff34e9c7

View file

@ -225,7 +225,7 @@ pandora.ui.metadataDialog = function(data) {
if (result.data) { if (result.data) {
imdb = Ox.clone(result.data, true); imdb = Ox.clone(result.data, true);
if (!Ox.contains(keys, 'originalTitle')) { if (!Ox.contains(keys, 'originalTitle')) {
if (imdb.originalTitle) { if (imdb.originalTitle && imdb.originalTitle != imdb.title) {
imdb.alternativeTitles = [[imdb.title, []]].concat(imdb.alternativeTitles || []); imdb.alternativeTitles = [[imdb.title, []]].concat(imdb.alternativeTitles || []);
imdb.title = imdb.originalTitle; imdb.title = imdb.originalTitle;
} }