include originalTitle in possible keys
This commit is contained in:
parent
e0d6e7f162
commit
3dd51b9d10
1 changed files with 5 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
pandora.ui.metadataDialog = function(data) {
|
pandora.ui.metadataDialog = function(data) {
|
||||||
|
|
||||||
var keys = [
|
var keys = [
|
||||||
'title', 'alternativeTitles', 'director',
|
'title', 'originalTitle', 'alternativeTitles', 'director',
|
||||||
'country', 'year', 'language', 'runtime', 'color', 'sound',
|
'country', 'year', 'language', 'runtime', 'color', 'sound',
|
||||||
'productionCompany', 'filmingLocations',
|
'productionCompany', 'filmingLocations',
|
||||||
'producer', 'writer', 'cinematographer', 'editor', 'composer', 'actor',
|
'producer', 'writer', 'cinematographer', 'editor', 'composer', 'actor',
|
||||||
|
@ -29,7 +29,10 @@ pandora.ui.metadataDialog = function(data) {
|
||||||
that = data.imdbId ? updateDialog() : idDialog();
|
that = data.imdbId ? updateDialog() : idDialog();
|
||||||
|
|
||||||
keys = keys.filter(function(key) {
|
keys = keys.filter(function(key) {
|
||||||
return Ox.contains(['alternativeTitles', 'filmingLocations'], key) || getItemKey(key);
|
return Ox.contains([
|
||||||
|
'alternativeTitles',
|
||||||
|
'filmingLocations'
|
||||||
|
], key) || getItemKey(key);
|
||||||
});
|
});
|
||||||
|
|
||||||
data.imdbId && getMetadata();
|
data.imdbId && getMetadata();
|
||||||
|
|
Loading…
Reference in a new issue