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

added GameGenre

This commit is contained in:
Luke Pulverenti 2013-07-01 13:17:33 -04:00
parent 58e6a91984
commit d1a8e37334
8 changed files with 274 additions and 11 deletions

View file

@ -31,6 +31,12 @@
return ApiClient.getMusicGenre(name, Dashboard.getCurrentUserId());
}
name = getParameterByName('gamegenre');
if (name) {
return ApiClient.getGameGenre(name, Dashboard.getCurrentUserId());
}
name = getParameterByName('artist');
if (name) {
@ -125,7 +131,7 @@
if (context == "music" && item.Type == "Artist") {
$('#artistTabs', page).show();
}
if (context == "games" && item.Type == "Genre") {
if (context == "games" && item.Type == "GameGenre") {
$('#gameGenreTabs', page).show();
}
if (context == "games" && item.Type == "Studio") {
@ -146,6 +152,9 @@
else if (item.Type == "MusicGenre") {
promise = ApiClient.getMusicGenreItemCounts(Dashboard.getCurrentUserId(), item.Name);
}
else if (item.Type == "GameGenre") {
promise = ApiClient.getGameGenreItemCounts(Dashboard.getCurrentUserId(), item.Name);
}
else if (item.Type == "Studio") {
promise = ApiClient.getStudioItemCounts(Dashboard.getCurrentUserId(), item.Name);
}
@ -383,6 +392,9 @@
else if (currentItem.Type == "MusicGenre") {
query.Genres = currentItem.Name;
}
else if (currentItem.Type == "GameGenre") {
query.Genres = currentItem.Name;
}
else if (currentItem.Type == "Studio") {
query.Studios = currentItem.Name;
}