forked from 0x2620/pandora
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',
|
||||
'links', 'reviews', 'posters',
|
||||
'alternativeTitles', 'originalTitle',
|
||||
'filmingLocations'
|
||||
]
|
||||
|
||||
#If you set VIDEO_PREFIX make sure cookies work accros subsomains
|
||||
|
|
|
@ -27,8 +27,7 @@ pandora.ui.metadataDialog = function(data) {
|
|||
$input = {},
|
||||
|
||||
extraKeyTitles = {
|
||||
'alternativeTitles': 'Alternative Titles',
|
||||
'filmingLocations': 'Filming Locations'
|
||||
'alternativeTitles': 'Alternative Titles'
|
||||
},
|
||||
|
||||
that = data.imdbId ? updateDialog() : idDialog();
|
||||
|
@ -365,10 +364,11 @@ pandora.ui.metadataDialog = function(data) {
|
|||
}
|
||||
|
||||
function updateMetadata() {
|
||||
var edit = {id: data.id}, type;
|
||||
var item, edit = {id: data.id}, type;
|
||||
updateKeys.forEach(function(key) {
|
||||
item = getItemKey(key);
|
||||
type = key == 'alternativeTitles' ? []
|
||||
: getItemKey(key).type;
|
||||
: item ? item.type : 'string';
|
||||
edit[getKey(key)] = imdb[key] || (
|
||||
Ox.isArray(type) ? [] : ''
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue