webui: include tvdb link in search results (#13200)

This commit is contained in:
ilike2burnthing
2022-04-25 03:23:36 +01:00
committed by GitHub
parent 012f2bd85e
commit e10f1c822e
5 changed files with 19 additions and 6 deletions

View File

@@ -972,6 +972,7 @@ function updateReleasesRow(row) {
var TitleLink = $(row).find("td.Title > a");
var IMDBId = $(row).data("imdb");
var TMDBId = $(row).data("tmdb");
var TVDBId = $(row).data("tvdb");
var Poster = $(row).data("poster");
var Description = $(row).data("description");
var DownloadVolumeFactor = parseFloat($(row).find("td.DownloadVolumeFactor").html());
@@ -1003,6 +1004,10 @@ function updateReleasesRow(row) {
labels.append('\n<a href="https://www.themoviedb.org/movie/' + TMDBId + '" target="_blank" class="label label-tmdb" alt="TMDB" title="TMDB">TMDB</a>');
}
if (TVDBId && TVDBId > 0) {
labels.append('\n<a href="https://thetvdb.com/?tab=series&id=' + TVDBId + '" target="_blank" class="label label-tvdb" alt="TVDB" title="TVDB">TVDB</a>');
}
if (!isNaN(DownloadVolumeFactor)) {
if (DownloadVolumeFactor == 0) {
labels.append('\n<span class="label label-success">FREELEECH</span>');