mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-26 03:55:01 +01:00
update live tv styles
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
using MediaBrowser.Controller.Library;
|
||||
using MediaBrowser.Controller.Providers;
|
||||
using MediaBrowser.Model.Logging;
|
||||
using MoreLinq;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
@@ -77,7 +76,7 @@ namespace MediaBrowser.Server.Implementations.Library.Validators
|
||||
double percent = numComplete;
|
||||
percent /= people.Count;
|
||||
|
||||
progress.Report(15 + 85 * percent);
|
||||
progress.Report(100 * percent);
|
||||
}
|
||||
|
||||
progress.Report(100);
|
||||
|
||||
@@ -244,6 +244,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
if (imageTag != null)
|
||||
{
|
||||
dto.ImageTags[ImageType.Primary] = imageTag;
|
||||
_dtoService.AttachPrimaryImageAspectRatio(dto, recording);
|
||||
}
|
||||
|
||||
if (user != null)
|
||||
@@ -331,6 +332,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
if (imageTag != null)
|
||||
{
|
||||
dto.ImageTags[ImageType.Primary] = imageTag;
|
||||
|
||||
_dtoService.AttachPrimaryImageAspectRatio(dto, info);
|
||||
}
|
||||
|
||||
if (currentProgram != null)
|
||||
@@ -392,6 +395,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
if (imageTag != null)
|
||||
{
|
||||
dto.ImageTags[ImageType.Primary] = imageTag;
|
||||
_dtoService.AttachPrimaryImageAspectRatio(dto, item);
|
||||
}
|
||||
|
||||
if (user != null)
|
||||
|
||||
@@ -79,9 +79,12 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
|
||||
private void ResetPingTimer()
|
||||
{
|
||||
var period = TimeSpan.FromSeconds(60);
|
||||
if (_pingTimer != null)
|
||||
{
|
||||
var period = TimeSpan.FromSeconds(60);
|
||||
|
||||
_pingTimer.Change(period, period);
|
||||
_pingTimer.Change(period, period);
|
||||
}
|
||||
}
|
||||
|
||||
private Task SendMessage(string name, CancellationToken cancellationToken)
|
||||
|
||||
@@ -165,6 +165,8 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
|
||||
if (disposable != null)
|
||||
{
|
||||
_logger.Debug("Disposing session controller {0}", disposable.GetType().Name);
|
||||
|
||||
try
|
||||
{
|
||||
disposable.Dispose();
|
||||
|
||||
Reference in New Issue
Block a user