GUI: fix f9aa3c4d7b tmdbid links movie or tv

This commit is contained in:
Garfield69
2022-04-26 17:55:23 +12:00
parent 1b6af38155
commit ab1c477486
2 changed files with 6 additions and 4 deletions

View File

@@ -977,6 +977,7 @@ function updateReleasesRow(row) {
var Description = $(row).data("description");
var DownloadVolumeFactor = parseFloat($(row).find("td.DownloadVolumeFactor").html());
var UploadVolumeFactor = parseFloat($(row).find("td.UploadVolumeFactor").html());
var Cat = $(row).find("td.Cat").html();
var TitleTooltip = "";
if (Poster)
@@ -1001,7 +1002,8 @@ function updateReleasesRow(row) {
}
if (TMDBId && TMDBId > 0) {
labels.append('\n<a href="https://www.themoviedb.org/movie/' + TMDBId + '" target="_blank" class="label label-tmdb" alt="TMDB" title="TMDB">TMDB</a>');
var TMdbType = (Cat.includes("Movies")) ? "movie" : "tv";
labels.append('\n<a href="https://www.themoviedb.org/' + TMdbType + '/' + TMDBId + '" target="_blank" class="label label-tmdb" alt="TMDB" title="TMDB">TMDB</a>');
}
if (TVDBId && TVDBId > 0) {

View File

@@ -468,7 +468,7 @@
<td class="fit">{{Size}}</td>
<td class="fit">{{jacketSize Size}}</td>
<td class="fit">{{Files}}</td>
<td class="fit">{{CategoryDesc}}</td>
<td class="fit Cat">{{CategoryDesc}}</td>
<td class="fit">{{Grabs}}</td>
<td class="fit">{{Seeders}}</td>
<td class="fit">{{Peers}}</td>
@@ -594,7 +594,7 @@
<td>{{Size}}</td>
<td class="fit">{{jacketSize Size}}</td>
<td>{{Files}}</td>
<td>{{CategoryDesc}}</td>
<td class="Cat">{{CategoryDesc}}</td>
<td>{{Grabs}}</td>
<td>{{Seeders}}</td>
<td>{{Peers}}</td>
@@ -754,6 +754,6 @@
</script>
<script type="text/javascript" src="../libs/api.js?changed=2017083001"></script>
<script type="text/javascript" src="../custom.js?changed=202204251"></script>
<script type="text/javascript" src="../custom.js?changed=20220426"></script>
</body>
</html>