include originalTitle in possible keys

This commit is contained in:
j 2018-09-12 17:19:13 +02:00
parent e0d6e7f162
commit 3dd51b9d10

View file

@ -3,7 +3,7 @@
pandora.ui.metadataDialog = function(data) {
var keys = [
'title', 'alternativeTitles', 'director',
'title', 'originalTitle', 'alternativeTitles', 'director',
'country', 'year', 'language', 'runtime', 'color', 'sound',
'productionCompany', 'filmingLocations',
'producer', 'writer', 'cinematographer', 'editor', 'composer', 'actor',
@ -29,7 +29,10 @@ pandora.ui.metadataDialog = function(data) {
that = data.imdbId ? updateDialog() : idDialog();
keys = keys.filter(function(key) {
return Ox.contains(['alternativeTitles', 'filmingLocations'], key) || getItemKey(key);
return Ox.contains([
'alternativeTitles',
'filmingLocations'
], key) || getItemKey(key);
});
data.imdbId && getMetadata();