forked from 0x2620/pandora
extra title keys
This commit is contained in:
parent
9730b046ce
commit
df38aad4f7
1 changed files with 7 additions and 8 deletions
|
@ -26,13 +26,15 @@ pandora.ui.metadataDialog = function(data) {
|
||||||
$label = {},
|
$label = {},
|
||||||
$input = {},
|
$input = {},
|
||||||
|
|
||||||
|
extraKeyTitles = {
|
||||||
|
'alternativeTitles': 'Alternative Titles',
|
||||||
|
'filmingLocations': 'Filming Locations'
|
||||||
|
},
|
||||||
|
|
||||||
that = data.imdbId ? updateDialog() : idDialog();
|
that = data.imdbId ? updateDialog() : idDialog();
|
||||||
|
|
||||||
keys = keys.filter(function(key) {
|
keys = keys.filter(function(key) {
|
||||||
return Ox.contains([
|
return key in extraKeyTitles || getItemKey(key);
|
||||||
'alternativeTitles',
|
|
||||||
'filmingLocations'
|
|
||||||
], key) || getItemKey(key);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
data.imdbId && getMetadata();
|
data.imdbId && getMetadata();
|
||||||
|
@ -298,10 +300,7 @@ pandora.ui.metadataDialog = function(data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getTitle(key) {
|
function getTitle(key) {
|
||||||
return Ox._(
|
return Ox._(extraKeyTitles[key] || getItemKey(key).title);
|
||||||
key == 'alternativeTitles' ? 'Alternative Titles'
|
|
||||||
: getItemKey(key).title
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getUpdateKeys() {
|
function getUpdateKeys() {
|
||||||
|
|
Loading…
Reference in a new issue