mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update video poster
This commit is contained in:
parent
4ce5c2065c
commit
b33e90dae7
4 changed files with 37 additions and 18 deletions
|
@ -489,14 +489,13 @@
|
|||
*/
|
||||
self.getItem = function (userId, itemId) {
|
||||
|
||||
if (!userId) {
|
||||
throw new Error("null userId");
|
||||
}
|
||||
if (!itemId) {
|
||||
throw new Error("null itemId");
|
||||
}
|
||||
|
||||
var url = self.getUrl("Users/" + userId + "/Items/" + itemId);
|
||||
var url = userId ?
|
||||
self.getUrl("Users/" + userId + "/Items/" + itemId) :
|
||||
self.getUrl("Items/" + itemId);
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue