update live tv styles
This commit is contained in:
parent
5477c61596
commit
25b5415829
|
@ -1,11 +1,10 @@
|
|||
using System.ComponentModel;
|
||||
using MediaBrowser.Model.Dto;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Library;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.Serialization;
|
||||
using MediaBrowser.Model.Dto;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using MediaBrowser.Model.Library;
|
||||
|
||||
namespace MediaBrowser.Model.LiveTv
|
||||
{
|
||||
|
@ -20,7 +19,7 @@ namespace MediaBrowser.Model.LiveTv
|
|||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the identifier.
|
||||
/// </summary>
|
||||
|
|
|
@ -10,13 +10,25 @@ using MediaBrowser.Model.Library;
|
|||
namespace MediaBrowser.Model.LiveTv
|
||||
{
|
||||
[DebuggerDisplay("Name = {Name}, StartTime = {StartDate}, EndTime = {EndDate}")]
|
||||
public class ProgramInfoDto : INotifyPropertyChanged
|
||||
public class ProgramInfoDto : INotifyPropertyChanged, IItemDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Id of the program.
|
||||
/// </summary>
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the primary image aspect ratio.
|
||||
/// </summary>
|
||||
/// <value>The primary image aspect ratio.</value>
|
||||
public double? PrimaryImageAspectRatio { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the original primary image aspect ratio.
|
||||
/// </summary>
|
||||
/// <value>The original primary image aspect ratio.</value>
|
||||
public double? OriginalPrimaryImageAspectRatio { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the timer identifier.
|
||||
/// </summary>
|
||||
|
|
|
@ -10,13 +10,25 @@ using System.Runtime.Serialization;
|
|||
namespace MediaBrowser.Model.LiveTv
|
||||
{
|
||||
[DebuggerDisplay("Name = {Name}, ChannelName = {ChannelName}")]
|
||||
public class RecordingInfoDto : INotifyPropertyChanged
|
||||
public class RecordingInfoDto : INotifyPropertyChanged, IItemDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Id of the recording.
|
||||
/// </summary>
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the primary image aspect ratio.
|
||||
/// </summary>
|
||||
/// <value>The primary image aspect ratio.</value>
|
||||
public double? PrimaryImageAspectRatio { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the original primary image aspect ratio.
|
||||
/// </summary>
|
||||
/// <value>The original primary image aspect ratio.</value>
|
||||
public double? OriginalPrimaryImageAspectRatio { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the series timer identifier.
|
||||
/// </summary>
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user