imdb can also be 8 digits
This commit is contained in:
parent
daed8b816c
commit
0e21f9ebc1
2 changed files with 2 additions and 2 deletions
|
@ -656,7 +656,7 @@ pandora.ui.infoView = function(data, isMixed) {
|
||||||
? Ox.decodeHTMLEntities(value).split('; ').map(Ox.encodeHTMLEntities)
|
? Ox.decodeHTMLEntities(value).split('; ').map(Ox.encodeHTMLEntities)
|
||||||
: [];
|
: [];
|
||||||
} else if (key == 'imdbId') {
|
} else if (key == 'imdbId') {
|
||||||
edit[key] = value ? value.match(/\d{7}/)[0] : value;
|
edit[key] = value ? value.match(/\d+?/)[0] : value;
|
||||||
} else {
|
} else {
|
||||||
edit[key] = value;
|
edit[key] = value;
|
||||||
}
|
}
|
||||||
|
|
|
@ -406,7 +406,7 @@ pandora.ui.mediaView = function(options) {
|
||||||
var conditions, matches;
|
var conditions, matches;
|
||||||
if (key == 'id' && data.value.substr(0, 2) != '0x') {
|
if (key == 'id' && data.value.substr(0, 2) != '0x') {
|
||||||
if (pandora.site.site.id == '0xdb') {
|
if (pandora.site.site.id == '0xdb') {
|
||||||
matches = data.value.match(/\d{7}/);
|
matches = data.value.match(/\d+?/);
|
||||||
} else {
|
} else {
|
||||||
matches = data.value.match(/[A-Z]+/);
|
matches = data.value.match(/[A-Z]+/);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue