fix additional keys in metadata dialog
This commit is contained in:
parent
27c7386775
commit
79d0d8e290
2 changed files with 5 additions and 4 deletions
|
@ -228,6 +228,7 @@ ADDITIONAL_IMDB_KEYS = [
|
||||||
'cast',
|
'cast',
|
||||||
'links', 'reviews', 'posters',
|
'links', 'reviews', 'posters',
|
||||||
'alternativeTitles', 'originalTitle',
|
'alternativeTitles', 'originalTitle',
|
||||||
|
'filmingLocations'
|
||||||
]
|
]
|
||||||
|
|
||||||
#If you set VIDEO_PREFIX make sure cookies work accros subsomains
|
#If you set VIDEO_PREFIX make sure cookies work accros subsomains
|
||||||
|
|
|
@ -27,8 +27,7 @@ pandora.ui.metadataDialog = function(data) {
|
||||||
$input = {},
|
$input = {},
|
||||||
|
|
||||||
extraKeyTitles = {
|
extraKeyTitles = {
|
||||||
'alternativeTitles': 'Alternative Titles',
|
'alternativeTitles': 'Alternative Titles'
|
||||||
'filmingLocations': 'Filming Locations'
|
|
||||||
},
|
},
|
||||||
|
|
||||||
that = data.imdbId ? updateDialog() : idDialog();
|
that = data.imdbId ? updateDialog() : idDialog();
|
||||||
|
@ -365,10 +364,11 @@ pandora.ui.metadataDialog = function(data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateMetadata() {
|
function updateMetadata() {
|
||||||
var edit = {id: data.id}, type;
|
var item, edit = {id: data.id}, type;
|
||||||
updateKeys.forEach(function(key) {
|
updateKeys.forEach(function(key) {
|
||||||
|
item = getItemKey(key);
|
||||||
type = key == 'alternativeTitles' ? []
|
type = key == 'alternativeTitles' ? []
|
||||||
: getItemKey(key).type;
|
: item ? item.type : 'string';
|
||||||
edit[getKey(key)] = imdb[key] || (
|
edit[getKey(key)] = imdb[key] || (
|
||||||
Ox.isArray(type) ? [] : ''
|
Ox.isArray(type) ? [] : ''
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue