mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added audio db id's to web client
This commit is contained in:
parent
bf93b46294
commit
76d7223294
5 changed files with 189 additions and 154 deletions
|
@ -1118,7 +1118,7 @@
|
|||
var displayIndexNumber = item.IndexNumber;
|
||||
|
||||
var number = "E" + displayIndexNumber;
|
||||
|
||||
|
||||
if (includeParentInfo !== false) {
|
||||
number = "S" + item.ParentIndexNumber + ", " + number;
|
||||
}
|
||||
|
@ -1352,7 +1352,7 @@
|
|||
links.push('<a class="textlink" href="http://www.themoviedb.org/person/' + providerIds.Tmdb + '" target="_blank">TheMovieDB</a>');
|
||||
else if (item.Type == "Series")
|
||||
links.push('<a class="textlink" href="http://www.themoviedb.org/tv/' + providerIds.Tmdb + '" target="_blank">TheMovieDB</a>');
|
||||
}
|
||||
}
|
||||
if (providerIds.Tvdb) {
|
||||
|
||||
if (item.Type == "Series") {
|
||||
|
@ -1377,7 +1377,9 @@
|
|||
}
|
||||
if (providerIds.MusicBrainzArtist) {
|
||||
|
||||
links.push('<a class="textlink" href="http://musicbrainz.org/artist/' + providerIds.MusicBrainzArtist + '" target="_blank">MusicBrainz Artist</a>');
|
||||
var text = item.Type == "MusicArtist" ? "MusicBrainz" : "MusicBrainz Artist";
|
||||
|
||||
links.push('<a class="textlink" href="http://musicbrainz.org/artist/' + providerIds.MusicBrainzArtist + '" target="_blank">' + text + '</a>');
|
||||
|
||||
}
|
||||
if (providerIds.MusicBrainzReleaseGroup) {
|
||||
|
@ -1385,6 +1387,20 @@
|
|||
links.push('<a class="textlink" href="http://musicbrainz.org/release-group/' + providerIds.MusicBrainzReleaseGroup + '" target="_blank">MusicBrainz Release Group</a>');
|
||||
|
||||
}
|
||||
if (providerIds.AudioDbArtist) {
|
||||
|
||||
if (item.Type == "MusicArtist")
|
||||
links.push('<a class="textlink" href="http://www.theaudiodb.com/artist/' + providerIds.AudioDbArtist + '" target="_blank">TheAudioDB</a>');
|
||||
else
|
||||
links.push('<a class="textlink" href="http://www.theaudiodb.com/artist/' + providerIds.AudioDbArtist + '" target="_blank">TheAudioDB Artist</a>');
|
||||
}
|
||||
if (providerIds.AudioDbAlbum) {
|
||||
|
||||
if (item.Type == "MusicAlbum")
|
||||
links.push('<a class="textlink" href="http://www.theaudiodb.com/album/' + providerIds.AudioDbAlbum + '" target="_blank">TheAudioDB</a>');
|
||||
else
|
||||
links.push('<a class="textlink" href="http://www.theaudiodb.com/album/' + providerIds.AudioDbAlbum + '" target="_blank">TheAudioDB Album</a>');
|
||||
}
|
||||
if (providerIds.Gamesdb) {
|
||||
links.push('<a class="textlink" href="http://thegamesdb.net/game/' + providerIds.Gamesdb + '" target="_blank">GamesDB</a>');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue