mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
support theme songs in the web client
This commit is contained in:
parent
b8c3e8c777
commit
b7235c797f
22 changed files with 603 additions and 272 deletions
|
@ -3007,10 +3007,7 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets theme songs for an item
|
||||
*/
|
||||
self.getThemeSongs = function (userId, itemId) {
|
||||
self.getThemeMedia = function (userId, itemId, inherit) {
|
||||
|
||||
if (!itemId) {
|
||||
throw new Error("null itemId");
|
||||
|
@ -3022,28 +3019,9 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||
options.userId = userId;
|
||||
}
|
||||
|
||||
var url = self.getUrl("Items/" + itemId + "/ThemeSongs", options);
|
||||
options.InheritFromParent = inherit || false;
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: url,
|
||||
dataType: "json"
|
||||
});
|
||||
};
|
||||
|
||||
self.getThemeVideos = function (userId, itemId) {
|
||||
|
||||
if (!itemId) {
|
||||
throw new Error("null itemId");
|
||||
}
|
||||
|
||||
var options = {};
|
||||
|
||||
if (userId) {
|
||||
options.userId = userId;
|
||||
}
|
||||
|
||||
var url = self.getUrl("Items/" + itemId + "/ThemeVideos", options);
|
||||
var url = self.getUrl("Items/" + itemId + "/ThemeMedia", options);
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue