only get metadata keys defined in itemKeys

This commit is contained in:
j 2018-05-09 10:22:29 +01:00
parent e8e5ce415d
commit 679c51238e
2 changed files with 5 additions and 1 deletions

View file

@ -189,7 +189,7 @@ pandora.ui.idDialog = function(data) {
if (item.originalTitle == data.title) { if (item.originalTitle == data.title) {
item.originalTitle = highlightTitle(item.originalTitle); item.originalTitle = highlightTitle(item.originalTitle);
} }
if (item.director) { if (item.director && data.director) {
item.director.forEach(function(director, i) { item.director.forEach(function(director, i) {
if (Ox.contains(data.director, director)) { if (Ox.contains(data.director, director)) {
item.director[i] = highlightTitle(director); item.director[i] = highlightTitle(director);

View file

@ -27,6 +27,10 @@ pandora.ui.metadataDialog = function(data) {
that = data.imdbId ? updateDialog() : idDialog(); that = data.imdbId ? updateDialog() : idDialog();
keys = keys.filter(function(key) {
return getItemKey(key);
});
data.imdbId && getMetadata(); data.imdbId && getMetadata();
function idDialog() { function idDialog() {