mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
imdb casing
This commit is contained in:
parent
7597f1e08b
commit
e20d9b24d7
1 changed files with 3 additions and 4 deletions
|
@ -275,20 +275,19 @@
|
|||
var page = $.mobile.activePage;
|
||||
//console.log(item);
|
||||
if (item.ProviderIds) {
|
||||
var elem = $('#itemLink', page).show();
|
||||
|
||||
var html = 'Links: ';
|
||||
var links = [];
|
||||
|
||||
if (item.ProviderIds.Imdb) {
|
||||
if (item.Type == "Movie" || item.Type == "Episode")
|
||||
links.push('<a class="ui-link" href="http://www.imdb.com/title/' + item.ProviderIds.Imdb + '" target="_blank">IMDB</a>');
|
||||
links.push('<a class="ui-link" href="http://www.imdb.com/title/' + item.ProviderIds.Imdb + '" target="_blank">IMDb</a>');
|
||||
else if (item.Type == "Person")
|
||||
links.push('<a class="ui-link" href="http://www.imdb.com/name/' + item.ProviderIds.Imdb + '" target="_blank">IMDB</a>');
|
||||
links.push('<a class="ui-link" href="http://www.imdb.com/name/' + item.ProviderIds.Imdb + '" target="_blank">IMDb</a>');
|
||||
}
|
||||
if (item.ProviderIds.Tmdb) {
|
||||
if (item.Type == "Movie")
|
||||
links.push('<a class="ui-link" href="http://www.themoviedb.org/movie/' + item.ProviderIds.Tmdb + '" target="_blank">TMDB</a>');
|
||||
links.push('<a class="ui-link" href="http://www.themoviedb.org/movie/' + item.ProviderIds.Tmdb + '" target="_blank">TMDB</a>');
|
||||
else if (item.Type == "Person")
|
||||
links.push('<a class="ui-link" href="http://www.themoviedb.org/person/' + item.ProviderIds.Tmdb + '" target="_blank">TMDB</a>');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue