mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
optimization added to resolve specific urls
This commit is contained in:
parent
ec18360958
commit
6046ad3dac
@ -1854,39 +1854,9 @@ var AppInfo = {};
|
||||
}
|
||||
}
|
||||
|
||||
if ("Playlist" == itemType) {
|
||||
return "itemdetails.html?id=" + id + "&serverId=" + serverId;
|
||||
}
|
||||
var itemTypes = ["Playlist", "TvChannel", "Program", "BoxSet", "MusicAlbum", "MusicGenre", "Person", "Recording", "MusicArtist"];
|
||||
|
||||
if ("TvChannel" == itemType) {
|
||||
return "itemdetails.html?id=" + id + "&serverId=" + serverId;
|
||||
}
|
||||
|
||||
if ("Program" == itemType) {
|
||||
return "itemdetails.html?id=" + id + "&serverId=" + serverId;
|
||||
}
|
||||
|
||||
if ("BoxSet" == itemType) {
|
||||
return "itemdetails.html?id=" + id + "&serverId=" + serverId;
|
||||
}
|
||||
|
||||
if ("MusicAlbum" == itemType) {
|
||||
return "itemdetails.html?id=" + id + "&serverId=" + serverId;
|
||||
}
|
||||
|
||||
if ("MusicGenre" == itemType) {
|
||||
return "itemdetails.html?id=" + id + "&serverId=" + serverId;
|
||||
}
|
||||
|
||||
if ("Person" == itemType) {
|
||||
return "itemdetails.html?id=" + id + "&serverId=" + serverId;
|
||||
}
|
||||
|
||||
if ("Recording" == itemType) {
|
||||
return "itemdetails.html?id=" + id + "&serverId=" + serverId;
|
||||
}
|
||||
|
||||
if ("MusicArtist" == itemType) {
|
||||
if (itemTypes.indexOf(itemType) >= 0) {
|
||||
return "itemdetails.html?id=" + id + "&serverId=" + serverId;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user