cleanup imdb id

This commit is contained in:
j 2018-05-09 11:59:52 +01:00
parent 4d2de79f32
commit 9adafc4377

View file

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