imdb can also be 8 digits

This commit is contained in:
j 2019-07-23 16:16:15 +02:00
commit 0e21f9ebc1
2 changed files with 2 additions and 2 deletions

View file

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