From e10f1c822efdcf3da9259bc95e1f27ccdfa0a664 Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Mon, 25 Apr 2022 03:23:36 +0100 Subject: [PATCH] webui: include tvdb link in search results (#13200) --- src/Jackett.Common/Content/custom.css | 4 ++++ src/Jackett.Common/Content/custom.js | 5 +++++ src/Jackett.Common/Content/custom_mobile.css | 4 ++++ src/Jackett.Common/Content/index.html | 10 +++++----- src/Jackett.Common/Content/login.html | 2 +- 5 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/Jackett.Common/Content/custom.css b/src/Jackett.Common/Content/custom.css index 00d5a48a1..936f57f49 100644 --- a/src/Jackett.Common/Content/custom.css +++ b/src/Jackett.Common/Content/custom.css @@ -302,6 +302,10 @@ table td.fit{ } .label-tmdb { + background-color: #7dbfd4; +} + +.label-tvdb { background-color: #86cca8; } diff --git a/src/Jackett.Common/Content/custom.js b/src/Jackett.Common/Content/custom.js index 73aa6061e..60e79ce62 100644 --- a/src/Jackett.Common/Content/custom.js +++ b/src/Jackett.Common/Content/custom.js @@ -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('\nTMDB'); } + if (TVDBId && TVDBId > 0) { + labels.append('\nTVDB'); + } + if (!isNaN(DownloadVolumeFactor)) { if (DownloadVolumeFactor == 0) { labels.append('\nFREELEECH'); diff --git a/src/Jackett.Common/Content/custom_mobile.css b/src/Jackett.Common/Content/custom_mobile.css index 17d104c0a..44bd803c8 100644 --- a/src/Jackett.Common/Content/custom_mobile.css +++ b/src/Jackett.Common/Content/custom_mobile.css @@ -285,6 +285,10 @@ table td.fit{ } .label-tmdb { + background-color: #7dbfd4; +} + +.label-tvdb { background-color: #86cca8; } diff --git a/src/Jackett.Common/Content/index.html b/src/Jackett.Common/Content/index.html index 8af24404a..de8907719 100644 --- a/src/Jackett.Common/Content/index.html +++ b/src/Jackett.Common/Content/index.html @@ -28,8 +28,8 @@ - - + + @@ -458,7 +458,7 @@
{{#each releases}} -