Add IMDB label

This commit is contained in:
kaso17
2016-12-20 10:01:53 +01:00
parent 59727fe8fc
commit 1fa0384eb8
3 changed files with 9 additions and 1 deletions

View File

@@ -492,11 +492,16 @@ function clearNotifications() {
function updateReleasesRow(row)
{
var labels = $(row).find("span.release-labels");
var IMDBId = $(row).data("imdb");
var DownloadVolumeFactor = parseFloat($(row).find("td.DownloadVolumeFactor").html());
var UploadVolumeFactor = parseFloat($(row).find("td.UploadVolumeFactor").html());
labels.empty();
if (IMDBId) {
labels.append('\n<a href="http://www.imdb.com/title/tt' + IMDBId + '/" class="label label-imdb" alt="IMDB" title="IMDB">IMDB</a>');
}
if (!isNaN(DownloadVolumeFactor)) {
if (DownloadVolumeFactor == 0) {
labels.append('\n<span class="label label-success">FREELEECH</span>');