1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fix displays for trailers

This commit is contained in:
Luke Pulverenti 2013-05-06 19:12:22 -04:00
parent d3adfd7028
commit ca5c8313cf
2 changed files with 6 additions and 4 deletions

View file

@ -699,14 +699,16 @@
var providerIds = item.ProviderIds || {};
if (providerIds.Imdb) {
if (item.Type == "Movie" || item.Type == "Episode")
if (item.Type == "Movie" || item.Type == "Episode" || item.Type == "Trailer")
links.push('<a class="ui-link" href="http://www.imdb.com/title/' + providerIds.Imdb + '" target="_blank">IMDb</a>');
else if (item.Type == "Person")
links.push('<a class="ui-link" href="http://www.imdb.com/name/' + providerIds.Imdb + '" target="_blank">IMDb</a>');
}
if (providerIds.Tmdb) {
if (item.Type == "Movie")
if (item.Type == "Movie" || item.Type == "Trailer")
links.push('<a class="ui-link" href="http://www.themoviedb.org/movie/' + providerIds.Tmdb + '" target="_blank">TMDB</a>');
else if (item.Type == "BoxSet")
links.push('<a class="ui-link" href="http://www.themoviedb.org/collection/' + providerIds.Tmdb + '" target="_blank">TMDB</a>');
else if (item.Type == "Person")
links.push('<a class="ui-link" href="http://www.themoviedb.org/person/' + providerIds.Tmdb + '" target="_blank">TMDB</a>');
}
@ -831,7 +833,7 @@
}
}
if (item.Type == "Movie" && item.CriticRating != null) {
if ((item.Type == "Movie" || item.Type == "Trailer") && item.CriticRating != null) {
if (item.CriticRating >= 60) {
html += '<div class="fresh rottentomatoesicon"></div>';