fix import media dialog

This commit is contained in:
rlx 2016-08-09 13:28:51 +02:00
parent 92fb9e3792
commit 6f979c1f9d

View file

@ -96,7 +96,7 @@ pandora.ui.importMediaDialog = function(options) {
var type = Ox.getObjectById(pandora.site.itemKeys, key).type; var type = Ox.getObjectById(pandora.site.itemKeys, key).type;
infoKeys.forEach(function(infoKey) { infoKeys.forEach(function(infoKey) {
infoValue = info[infoKey]; infoValue = info[infoKey];
if (key == 'year') { if (key == 'year' && infoKey == 'date') {
infoValue = infoValue.substr(0, 4); infoValue = infoValue.substr(0, 4);
} }
if (infoKey == 'tags' && Ox.isArray(type)) { if (infoKey == 'tags' && Ox.isArray(type)) {