optimization added to resolve specific urls

This commit is contained in:
vitorsemeano 2019-03-05 19:10:03 +00:00
parent ec18360958
commit 6046ad3dac

View File

@ -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;
}