mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
don't duplicate synced items
This commit is contained in:
parent
aff141f716
commit
7b42686295
@ -839,7 +839,7 @@ span.itemCommunityRating:not(:empty) + .userDataIcons {
|
||||
}
|
||||
|
||||
.detailImageContainer img {
|
||||
max-width: 100px;
|
||||
max-width: 80px;
|
||||
}
|
||||
|
||||
.mobileOverview:not(.hide), .mobileGenres {
|
||||
@ -861,19 +861,11 @@ span.itemCommunityRating:not(:empty) + .userDataIcons {
|
||||
.backdropDetailPageContent {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (max-width: 800px) {
|
||||
|
||||
.detailImageContainer img {
|
||||
max-width: 80px;
|
||||
}
|
||||
|
||||
.thumbDetailImageContainer img {
|
||||
max-width: 180px;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (min-width: 750px) {
|
||||
.detailPageContent {
|
||||
width: 950px;
|
||||
|
@ -8,9 +8,9 @@
|
||||
|
||||
<div data-role="content">
|
||||
<form class="liveTvNewRecordingForm" style="margin: 0 auto;">
|
||||
<p><span class="itemName inlineItemName"></span><span class="itemMiscInfo" style="display: inline;"></span></p>
|
||||
<p><span class="itemName inlineItemName"></span></p>
|
||||
<p class="itemEpisodeName"></p>
|
||||
<p class="itemMiscInfo miscTvProgramInfo"></p>
|
||||
<p class="itemMiscInfo"></p>
|
||||
<p>
|
||||
<span class="itemCommunityRating"></span>
|
||||
</p>
|
||||
|
@ -13,7 +13,7 @@
|
||||
<div style="display: none; vertical-align: top; margin-right: 1em; padding-top: 1em;" class="timerPageImageContainer">
|
||||
</div>
|
||||
<div style="display: inline-block; vertical-align: middle;">
|
||||
<p><span class="itemName inlineItemName"></span><span class="itemMiscInfo" style="display: inline;"></span></p>
|
||||
<p><span class="itemName inlineItemName"></span></p>
|
||||
<p class="itemEpisodeName"></p>
|
||||
<p class="itemMiscInfo miscTvProgramInfo"></p>
|
||||
<p>
|
||||
|
@ -2564,29 +2564,29 @@
|
||||
}
|
||||
}
|
||||
|
||||
//var tooltipLike = Globalize.translate('TooltipLike');
|
||||
//var tooltipDislike = Globalize.translate('TooltipDislike');
|
||||
var tooltipLike = Globalize.translate('TooltipLike');
|
||||
var tooltipDislike = Globalize.translate('TooltipDislike');
|
||||
|
||||
//if (typeof userData.Likes == "undefined") {
|
||||
// html += LibraryBrowser.getUserDataButtonHtml('markDislike', itemId, 'btnUserItemRating', 'thumb-down', tooltipDislike, style);
|
||||
// html += LibraryBrowser.getUserDataButtonHtml('markLike', itemId, 'btnUserItemRating', 'thumb-up', tooltipLike, style);
|
||||
//}
|
||||
//else if (userData.Likes) {
|
||||
// html += LibraryBrowser.getUserDataButtonHtml('markDislike', itemId, 'btnUserItemRating', 'thumb-down', tooltipDislike, style);
|
||||
// html += LibraryBrowser.getUserDataButtonHtml('markLike', itemId, 'btnUserItemRating btnUserItemRatingOn', 'thumb-up', tooltipLike, style);
|
||||
//}
|
||||
//else {
|
||||
// html += LibraryBrowser.getUserDataButtonHtml('markDislike', itemId, 'btnUserItemRating btnUserItemRatingOn', 'thumb-down', tooltipDislike, style);
|
||||
// html += LibraryBrowser.getUserDataButtonHtml('markLike', itemId, 'btnUserItemRating', 'thumb-up', tooltipLike, style);
|
||||
//}
|
||||
if (typeof userData.Likes == "undefined") {
|
||||
html += LibraryBrowser.getUserDataButtonHtml('markDislike', itemId, 'btnUserItemRating', 'thumb-down', tooltipDislike, style);
|
||||
html += LibraryBrowser.getUserDataButtonHtml('markLike', itemId, 'btnUserItemRating', 'thumb-up', tooltipLike, style);
|
||||
}
|
||||
else if (userData.Likes) {
|
||||
html += LibraryBrowser.getUserDataButtonHtml('markDislike', itemId, 'btnUserItemRating', 'thumb-down', tooltipDislike, style);
|
||||
html += LibraryBrowser.getUserDataButtonHtml('markLike', itemId, 'btnUserItemRating btnUserItemRatingOn', 'thumb-up', tooltipLike, style);
|
||||
}
|
||||
else {
|
||||
html += LibraryBrowser.getUserDataButtonHtml('markDislike', itemId, 'btnUserItemRating btnUserItemRatingOn', 'thumb-down', tooltipDislike, style);
|
||||
html += LibraryBrowser.getUserDataButtonHtml('markLike', itemId, 'btnUserItemRating', 'thumb-up', tooltipLike, style);
|
||||
}
|
||||
|
||||
//var tooltipFavorite = Globalize.translate('TooltipFavorite');
|
||||
//if (userData.IsFavorite) {
|
||||
var tooltipFavorite = Globalize.translate('TooltipFavorite');
|
||||
if (userData.IsFavorite) {
|
||||
|
||||
// html += LibraryBrowser.getUserDataButtonHtml('markFavorite', itemId, 'btnUserItemRating btnUserItemRatingOn', 'favorite', tooltipFavorite, style);
|
||||
//} else {
|
||||
// html += LibraryBrowser.getUserDataButtonHtml('markFavorite', itemId, 'btnUserItemRating', 'favorite', tooltipFavorite, style);
|
||||
//}
|
||||
html += LibraryBrowser.getUserDataButtonHtml('markFavorite', itemId, 'btnUserItemRating btnUserItemRatingOn', 'favorite', tooltipFavorite, style);
|
||||
} else {
|
||||
html += LibraryBrowser.getUserDataButtonHtml('markFavorite', itemId, 'btnUserItemRating', 'favorite', tooltipFavorite, style);
|
||||
}
|
||||
|
||||
return html;
|
||||
},
|
||||
@ -2974,6 +2974,25 @@
|
||||
var miscInfo = [];
|
||||
var text, date;
|
||||
|
||||
if (item.IsSeries && !item.IsRepeat) {
|
||||
|
||||
require(['livetvcss']);
|
||||
miscInfo.push('<span class="newTvProgram">' + Globalize.translate('LabelNewProgram') + '</span>');
|
||||
|
||||
}
|
||||
|
||||
if (item.IsLive) {
|
||||
|
||||
miscInfo.push('<span class="liveTvProgram">' + Globalize.translate('LabelLiveProgram') + '</span>');
|
||||
|
||||
}
|
||||
|
||||
if (item.ChannelId && item.ChannelName) {
|
||||
if (item.Type == 'Program' || item.Type == 'Recording') {
|
||||
miscInfo.push('<a class="textlink" href="itemdetails.html?id=' + item.ChannelId + '">' + item.ChannelName + '</a>');
|
||||
}
|
||||
}
|
||||
|
||||
if (item.Type == "Episode" || item.MediaType == 'Photo') {
|
||||
|
||||
if (item.PremiereDate) {
|
||||
@ -3077,6 +3096,17 @@
|
||||
miscInfo.push(item.OfficialRating);
|
||||
}
|
||||
|
||||
if (item.IsHD) {
|
||||
|
||||
miscInfo.push(Globalize.translate('LabelHDProgram'));
|
||||
}
|
||||
|
||||
if (item.Audio) {
|
||||
|
||||
miscInfo.push(item.Audio);
|
||||
|
||||
}
|
||||
|
||||
if (item.Video3DFormat) {
|
||||
miscInfo.push("3D");
|
||||
}
|
||||
@ -3095,6 +3125,15 @@
|
||||
miscInfo.push(html);
|
||||
require(['livetvcss']);
|
||||
}
|
||||
else if (item.TimerId) {
|
||||
|
||||
var html = '';
|
||||
html += '<a href="livetvtimer.html?id=' + item.TimerId + '">';
|
||||
html += '<div class="timerCircle"></div>';
|
||||
html += '</a>';
|
||||
miscInfo.push(html);
|
||||
require(['livetvcss']);
|
||||
}
|
||||
|
||||
return miscInfo.join(' ');
|
||||
},
|
||||
|
@ -24,57 +24,6 @@
|
||||
});
|
||||
},
|
||||
|
||||
renderMiscProgramInfo: function (elem, obj) {
|
||||
|
||||
var html = [];
|
||||
|
||||
if (obj.IsSeries && !obj.IsRepeat) {
|
||||
|
||||
html.push('<span class="newTvProgram">' + Globalize.translate('LabelNewProgram') + '</span>');
|
||||
|
||||
}
|
||||
|
||||
if (obj.IsLive) {
|
||||
|
||||
html.push('<span class="liveTvProgram">' + Globalize.translate('LabelLiveProgram') + '</span>');
|
||||
|
||||
}
|
||||
|
||||
if (obj.ChannelId) {
|
||||
html.push('<a class="textlink" href="itemdetails.html?id=' + obj.ChannelId + '">' + obj.ChannelName + '</a>');
|
||||
}
|
||||
|
||||
if (obj.IsHD) {
|
||||
|
||||
html.push(Globalize.translate('LabelHDProgram'));
|
||||
|
||||
}
|
||||
|
||||
if (obj.Audio) {
|
||||
|
||||
html.push(obj.Audio);
|
||||
|
||||
}
|
||||
|
||||
html = html.join(' ');
|
||||
|
||||
if (obj.SeriesTimerId) {
|
||||
html += '<a href="livetvseriestimer.html?id=' + obj.SeriesTimerId + '" title="' + Globalize.translate('ButtonViewSeriesRecording') + '">';
|
||||
html += '<div class="timerCircle seriesTimerCircle"></div>';
|
||||
html += '<div class="timerCircle seriesTimerCircle"></div>';
|
||||
html += '<div class="timerCircle seriesTimerCircle"></div>';
|
||||
html += '</a>';
|
||||
}
|
||||
else if (obj.TimerId) {
|
||||
|
||||
html += '<a href="livetvtimer.html?id=' + obj.TimerId + '">';
|
||||
html += '<div class="timerCircle"></div>';
|
||||
html += '</a>';
|
||||
}
|
||||
|
||||
elem.html(html).trigger('create');
|
||||
},
|
||||
|
||||
renderOriginalAirDate: function (elem, item) {
|
||||
|
||||
var airDate = item.OriginalAirDate;
|
||||
@ -181,7 +130,7 @@
|
||||
});
|
||||
|
||||
LibraryBrowser.renderGenres($('.itemGenres', popup), item, 'livetv', 3);
|
||||
LiveTvHelpers.renderMiscProgramInfo($('.miscTvProgramInfo', popup), item);
|
||||
$('.miscTvProgramInfo', popup).html(LibraryBrowser.getMiscInfoHtml(item)).trigger('create');
|
||||
|
||||
popup.parents().prev('.ui-popup-screen').remove();
|
||||
currentPosterItem = elem;
|
||||
|
@ -10,7 +10,8 @@
|
||||
UserId: Dashboard.getCurrentUserId(),
|
||||
SortBy: "StartDate,SortName",
|
||||
SortOrder: "Ascending",
|
||||
StartIndex: 0
|
||||
StartIndex: 0,
|
||||
HasAired: false
|
||||
};
|
||||
|
||||
function getSavedQueryKey() {
|
||||
|
@ -19,8 +19,6 @@
|
||||
|
||||
$('.itemMiscInfo', page).html(LibraryBrowser.getMiscInfoHtml(program));
|
||||
|
||||
LiveTvHelpers.renderMiscProgramInfo($('.miscTvProgramInfo', page), program);
|
||||
|
||||
$('#chkNewOnly', page).checked(defaultTimer.RecordNewOnly);
|
||||
$('#chkAllChannels', page).checked(defaultTimer.RecordAnyChannel);
|
||||
$('#chkAnyTime', page).checked(defaultTimer.RecordAnyTime);
|
||||
|
@ -53,9 +53,7 @@
|
||||
$('.timerPageImageContainer', page).hide();
|
||||
}
|
||||
|
||||
$('.itemMiscInfo', page).html(LibraryBrowser.getMiscInfoHtml(item));
|
||||
|
||||
LiveTvHelpers.renderMiscProgramInfo($('.miscTvProgramInfo', page), programInfo);
|
||||
$('.itemMiscInfo', page).html(LibraryBrowser.getMiscInfoHtml(programInfo));
|
||||
|
||||
$('#txtPrePaddingMinutes', page).val(item.PrePaddingSeconds / 60);
|
||||
$('#txtPostPaddingMinutes', page).val(item.PostPaddingSeconds / 60);
|
||||
|
Loading…
Reference in New Issue
Block a user