only get metadata keys defined in itemKeys
This commit is contained in:
parent
e8e5ce415d
commit
679c51238e
2 changed files with 5 additions and 1 deletions
|
@ -189,7 +189,7 @@ pandora.ui.idDialog = function(data) {
|
|||
if (item.originalTitle == data.title) {
|
||||
item.originalTitle = highlightTitle(item.originalTitle);
|
||||
}
|
||||
if (item.director) {
|
||||
if (item.director && data.director) {
|
||||
item.director.forEach(function(director, i) {
|
||||
if (Ox.contains(data.director, director)) {
|
||||
item.director[i] = highlightTitle(director);
|
||||
|
|
|
@ -27,6 +27,10 @@ pandora.ui.metadataDialog = function(data) {
|
|||
|
||||
that = data.imdbId ? updateDialog() : idDialog();
|
||||
|
||||
keys = keys.filter(function(key) {
|
||||
return getItemKey(key);
|
||||
});
|
||||
|
||||
data.imdbId && getMetadata();
|
||||
|
||||
function idDialog() {
|
||||
|
|
Loading…
Reference in a new issue