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

revise endpoint attributes

This commit is contained in:
Luke Pulverenti 2014-11-14 21:31:03 -05:00
parent 1d9dc3acfd
commit b06fdda96d
13 changed files with 91 additions and 111 deletions

View file

@ -18,32 +18,10 @@
}
function getBaseRemoteOptions() {
var options = {};
if (currentItem.Type == "Year") {
options.year = currentItem.Name;
}
else if (currentItem.Type == "MusicArtist") {
options.artist = currentItem.Name;
}
else if (currentItem.Type == "Person") {
options.person = currentItem.Name;
}
else if (currentItem.Type == "Genre") {
options.genre = currentItem.Name;
}
else if (currentItem.Type == "GameGenre") {
options.gameGenre = currentItem.Name;
}
else if (currentItem.Type == "MusicGenre") {
options.musicGenre = currentItem.Name;
}
else if (currentItem.Type == "Studio") {
options.studio = currentItem.Name;
}
else {
options.itemId = currentItem.Id;
}
options.itemId = currentItem.Id;
return options;
}