gui: fix imdbid button on dashboard search result rows

3rd time's the charm.
This commit is contained in:
Garfield69
2021-10-21 18:12:29 +13:00
parent 8af73f1bc4
commit 4d13c14f1d
2 changed files with 3 additions and 3 deletions

View File

@@ -970,8 +970,8 @@ function updateReleasesRow(row) {
labels.empty();
if (IMDBId) {
var imdbLen = (IMDBId.length > 7) ? 8 : 7
if (IMDBId) {
var imdbLen = (IMDBId.toString().length > 7) ? 8 : 7;
labels.append('\n<a href="https://www.imdb.com/title/tt' + ("00000000" + IMDBId).slice(-imdbLen) + '/" class="label label-imdb" alt="IMDB" title="IMDB">IMDB</a>');
}