forked from 0x2620/pandora
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) {
|
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);
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue