1
0
Fork 0
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:
Luke Pulverenti 2015-07-03 12:49:49 -04:00
parent 4ce5c2065c
commit b33e90dae7
4 changed files with 37 additions and 18 deletions

View file

@ -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",