1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

allow editing of channel images in the web client

This commit is contained in:
Luke Pulverenti 2013-11-24 18:37:38 -05:00
parent d3a3e54791
commit b96d16576f
9 changed files with 369 additions and 38 deletions

View file

@ -557,6 +557,9 @@
// Handle search hints
var id = item.Id || item.ItemId;
if (item.Type == "Channel") {
return "livetvchannel.html?id=" + id;
}
if (item.Type == "Series") {
return "itemdetails.html?id=" + id;
}
@ -1701,6 +1704,10 @@
getDetailImageHtml: function (item) {
var imageTags = item.ImageTags || {};
if (item.PrimaryImageTag) {
imageTags.Primary = item.PrimaryImageTag;
}
var html = '';
@ -1708,7 +1715,14 @@
if (imageTags.Primary) {
if (item.Type == "Person") {
if (item.Type == "Channel") {
url = ApiClient.getUrl("LiveTV/Channels/" + item.Id + "/Images/Primary", {
maxheight: 480,
tag: imageTags.Primary,
type: "Primary"
});
}
else if (item.Type == "Person") {
url = ApiClient.getPersonImageUrl(item.Name, {
maxheight: 480,
tag: imageTags.Primary,