1
0
Fork 0
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:
Luke Pulverenti 2014-06-22 12:49:39 -04:00
parent 5732f0a7ed
commit b26707208f
2 changed files with 22 additions and 2 deletions

View file

@ -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
*/