mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixing merge issue
This commit is contained in:
parent
e863a9449d
commit
c5906d4f28
2 changed files with 12 additions and 8 deletions
|
@ -71,11 +71,13 @@
|
||||||
var imageTags = item.ImageTags || {};
|
var imageTags = item.ImageTags || {};
|
||||||
var html = '';
|
var html = '';
|
||||||
|
|
||||||
|
var url = "";
|
||||||
|
|
||||||
if (item.BackdropImageTags && item.BackdropImageTags.length) {
|
if (item.BackdropImageTags && item.BackdropImageTags.length) {
|
||||||
|
|
||||||
url = ApiClient.getImageUrl(item.Id, {
|
url = ApiClient.getImageUrl(item.Id, {
|
||||||
type: "Backdrop",
|
type: "Backdrop",
|
||||||
height: 30,
|
height: 36,
|
||||||
tag: item.BackdropImageTags[0]
|
tag: item.BackdropImageTags[0]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -83,7 +85,7 @@
|
||||||
|
|
||||||
url = ApiClient.getImageUrl(item.Id, {
|
url = ApiClient.getImageUrl(item.Id, {
|
||||||
type: "Thumb",
|
type: "Thumb",
|
||||||
height: 30,
|
height: 36,
|
||||||
tag: item.ImageTags.Thumb
|
tag: item.ImageTags.Thumb
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -91,7 +93,7 @@
|
||||||
|
|
||||||
url = ApiClient.getImageUrl(item.Id, {
|
url = ApiClient.getImageUrl(item.Id, {
|
||||||
type: "Primary",
|
type: "Primary",
|
||||||
height: 30,
|
height: 36,
|
||||||
tag: item.ImageTags.Primary
|
tag: item.ImageTags.Primary
|
||||||
});
|
});
|
||||||
}else {
|
}else {
|
||||||
|
@ -111,7 +113,7 @@
|
||||||
series_name = item.SeriesName || item.Album || item.ProductionYear;
|
series_name = item.SeriesName || item.Album || item.ProductionYear;
|
||||||
}
|
}
|
||||||
|
|
||||||
html += "<div><img class='clientNowPlayingImage' alt='' title='' src='" + url + "' style='height:30px;display:inline-block;' /></div>";
|
html += "<div><img class='nowPlayingBarImage ' alt='' title='' src='" + url + "' style='height:36px;display:inline-block;' /></div>";
|
||||||
html += '<div>'+name+'<br/>'+series_name+'</div>';
|
html += '<div>'+name+'<br/>'+series_name+'</div>';
|
||||||
|
|
||||||
$('#mediaInfo', nowPlayingBar).html(html);
|
$('#mediaInfo', nowPlayingBar).html(html);
|
||||||
|
|
|
@ -897,8 +897,10 @@ var Dashboard = {
|
||||||
$(ApiClient).on("websocketmessage", Dashboard.onWebSocketMessageReceived);
|
$(ApiClient).on("websocketmessage", Dashboard.onWebSocketMessageReceived);
|
||||||
},
|
},
|
||||||
|
|
||||||
onWebSocketMessageReceived: function (msg) {
|
onWebSocketMessageReceived: function (e, data) {
|
||||||
|
|
||||||
|
var msg = data;
|
||||||
|
|
||||||
if (msg.MessageType === "LibraryChanged") {
|
if (msg.MessageType === "LibraryChanged") {
|
||||||
Dashboard.processLibraryUpdateNotification(msg.Data);
|
Dashboard.processLibraryUpdateNotification(msg.Data);
|
||||||
}
|
}
|
||||||
|
@ -908,7 +910,7 @@ var Dashboard = {
|
||||||
else if (msg.MessageType === "SystemInfo") {
|
else if (msg.MessageType === "SystemInfo") {
|
||||||
Dashboard.updateSystemInfo(msg.Data);
|
Dashboard.updateSystemInfo(msg.Data);
|
||||||
}
|
}
|
||||||
else if (msg.MessageType === "HasPendingRestartChanged") {
|
else if (msg.MessageType === "RestartRequired") {
|
||||||
Dashboard.updateSystemInfo(msg.Data);
|
Dashboard.updateSystemInfo(msg.Data);
|
||||||
}
|
}
|
||||||
else if (msg.MessageType === "UserUpdated") {
|
else if (msg.MessageType === "UserUpdated") {
|
||||||
|
@ -937,7 +939,7 @@ var Dashboard = {
|
||||||
Dashboard.showPackageInstallNotification(msg.Data, "progress");
|
Dashboard.showPackageInstallNotification(msg.Data, "progress");
|
||||||
Dashboard.refreshSystemInfoFromServer();
|
Dashboard.refreshSystemInfoFromServer();
|
||||||
}
|
}
|
||||||
else if (msg.MessageType === "ScheduledTaskEndExecute") {
|
else if (msg.MessageType === "ScheduledTaskEnded") {
|
||||||
|
|
||||||
Dashboard.showTaskCompletionNotification(msg.Data);
|
Dashboard.showTaskCompletionNotification(msg.Data);
|
||||||
}
|
}
|
||||||
|
@ -1092,7 +1094,7 @@ var Dashboard = {
|
||||||
type: "Primary"
|
type: "Primary"
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!item.Id || data.icon.indexOf("undefined") != -1) {
|
if (!item.Id || !data.icon) {
|
||||||
alert("bad image url: " + JSON.stringify(item));
|
alert("bad image url: " + JSON.stringify(item));
|
||||||
console.log("bad image url: " + JSON.stringify(item));
|
console.log("bad image url: " + JSON.stringify(item));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue