empty imdbid is also allowed

This commit is contained in:
j 2019-06-11 11:17:38 +01:00
parent 074ee1e715
commit f8458777b3

View file

@ -651,7 +651,7 @@ pandora.ui.infoView = function(data, isMixed) {
? Ox.decodeHTMLEntities(value).split('; ').map(Ox.encodeHTMLEntities)
: [];
} else if (key == 'imdbId') {
edit[key] = value.match(/\d{7}/)[0];
edit[key] = value ? value.match(/\d{7}/)[0] : value;
} else {
edit[key] = value;
}