mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add album artists endpoint
This commit is contained in:
parent
5732f0a7ed
commit
b26707208f
2 changed files with 22 additions and 2 deletions
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
SortBy: "SortName",
|
SortBy: "SortName",
|
||||||
SortOrder: "Ascending",
|
SortOrder: "Ascending",
|
||||||
IncludeItemTypes: "MusicArtist",
|
|
||||||
Recursive: true,
|
Recursive: true,
|
||||||
Fields: "DateCreated",
|
Fields: "DateCreated",
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
|
@ -20,7 +19,7 @@
|
||||||
|
|
||||||
Dashboard.showLoadingMsg();
|
Dashboard.showLoadingMsg();
|
||||||
|
|
||||||
ApiClient.getItems(Dashboard.getCurrentUserId(), query).done(function (result) {
|
ApiClient.getAlbumArtists(Dashboard.getCurrentUserId(), query).done(function (result) {
|
||||||
|
|
||||||
// Scroll back up so they can see the results from the beginning
|
// Scroll back up so they can see the results from the beginning
|
||||||
$(document).scrollTop(0);
|
$(document).scrollTop(0);
|
||||||
|
|
|
@ -2613,6 +2613,27 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
Gets artists from an item
|
||||||
|
*/
|
||||||
|
self.getAlbumArtists = function (userId, options) {
|
||||||
|
|
||||||
|
if (!userId) {
|
||||||
|
throw new Error("null userId");
|
||||||
|
}
|
||||||
|
|
||||||
|
options = options || {};
|
||||||
|
options.userId = userId;
|
||||||
|
|
||||||
|
var url = self.getUrl("AlbumArtists", options);
|
||||||
|
|
||||||
|
return self.ajax({
|
||||||
|
type: "GET",
|
||||||
|
url: url,
|
||||||
|
dataType: "json"
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Gets genres from an item
|
Gets genres from an item
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue