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

@ -232,3 +232,6 @@ pre {
width: 1%;
}
.label-imdb {
background-color: #d0ab44;
}

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>');

View File

@ -400,7 +400,7 @@
</thead>
<tbody>
{{#each Results}}
<tr class="jackett-search-results-row">
<tr class="jackett-search-results-row" data-imdb="{{Imdb}}">
<td>{{PublishDate}}</td>
<td>{{jacketTimespan PublishDate}}</td>
<td>{{Tracker}}</td>