mirror of https://github.com/Jackett/Jackett
Add IMDB label
This commit is contained in:
parent
59727fe8fc
commit
1fa0384eb8
|
@ -232,3 +232,6 @@ pre {
|
||||||
width: 1%;
|
width: 1%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.label-imdb {
|
||||||
|
background-color: #d0ab44;
|
||||||
|
}
|
|
@ -492,11 +492,16 @@ function clearNotifications() {
|
||||||
function updateReleasesRow(row)
|
function updateReleasesRow(row)
|
||||||
{
|
{
|
||||||
var labels = $(row).find("span.release-labels");
|
var labels = $(row).find("span.release-labels");
|
||||||
|
var IMDBId = $(row).data("imdb");
|
||||||
var DownloadVolumeFactor = parseFloat($(row).find("td.DownloadVolumeFactor").html());
|
var DownloadVolumeFactor = parseFloat($(row).find("td.DownloadVolumeFactor").html());
|
||||||
var UploadVolumeFactor = parseFloat($(row).find("td.UploadVolumeFactor").html());
|
var UploadVolumeFactor = parseFloat($(row).find("td.UploadVolumeFactor").html());
|
||||||
|
|
||||||
labels.empty();
|
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 (!isNaN(DownloadVolumeFactor)) {
|
||||||
if (DownloadVolumeFactor == 0) {
|
if (DownloadVolumeFactor == 0) {
|
||||||
labels.append('\n<span class="label label-success">FREELEECH</span>');
|
labels.append('\n<span class="label label-success">FREELEECH</span>');
|
||||||
|
|
|
@ -400,7 +400,7 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{{#each Results}}
|
{{#each Results}}
|
||||||
<tr class="jackett-search-results-row">
|
<tr class="jackett-search-results-row" data-imdb="{{Imdb}}">
|
||||||
<td>{{PublishDate}}</td>
|
<td>{{PublishDate}}</td>
|
||||||
<td>{{jacketTimespan PublishDate}}</td>
|
<td>{{jacketTimespan PublishDate}}</td>
|
||||||
<td>{{Tracker}}</td>
|
<td>{{Tracker}}</td>
|
||||||
|
|
Loading…
Reference in New Issue