mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
gui+core: imdbid can have 7 or 8 digits
This commit is contained in:
@@ -971,7 +971,8 @@ function updateReleasesRow(row) {
|
|||||||
labels.empty();
|
labels.empty();
|
||||||
|
|
||||||
if (IMDBId) {
|
if (IMDBId) {
|
||||||
labels.append('\n<a href="https://www.imdb.com/title/tt' + ("0000000" + IMDBId).slice(-7) + '/" class="label label-imdb" alt="IMDB" title="IMDB">IMDB</a>');
|
var imdbLen = (IMDBId.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>');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isNaN(DownloadVolumeFactor)) {
|
if (!isNaN(DownloadVolumeFactor)) {
|
||||||
|
@@ -732,6 +732,6 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/javascript" src="../libs/api.js?changed=2017083001"></script>
|
<script type="text/javascript" src="../libs/api.js?changed=2017083001"></script>
|
||||||
<script type="text/javascript" src="../custom.js?changed=20211022"></script>
|
<script type="text/javascript" src="../custom.js?changed=2021102201"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -79,8 +79,8 @@ namespace Jackett.Common.Utils
|
|||||||
var imdbid = GetImdbID(imdbstr);
|
var imdbid = GetImdbID(imdbstr);
|
||||||
if (imdbid == null)
|
if (imdbid == null)
|
||||||
return null;
|
return null;
|
||||||
|
var imdbLen = ((int)imdbid > 9999999) ? "D8" : "D7";
|
||||||
return "tt" + ((int)imdbid).ToString("D7");
|
return "tt" + ((int)imdbid).ToString(imdbLen);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user