mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
commit
796f374359
@ -1642,6 +1642,7 @@ namespace Emby.Server.Implementations.Dto
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
_logger.Info("Getting image size for item type {0}", item.GetType().Name);
|
_logger.Info("Getting image size for item type {0}", item.GetType().Name);
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -1406,11 +1406,19 @@ namespace Emby.Server.Implementations.Session
|
|||||||
.FirstOrDefault(i => string.Equals(request.Username, i.Name, StringComparison.OrdinalIgnoreCase));
|
.FirstOrDefault(i => string.Equals(request.Username, i.Name, StringComparison.OrdinalIgnoreCase));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user != null && !string.IsNullOrWhiteSpace(request.DeviceId))
|
if (user != null)
|
||||||
{
|
{
|
||||||
if (!_deviceManager.CanAccessDevice(user.Id.ToString("N"), request.DeviceId))
|
if (!user.IsParentalScheduleAllowed())
|
||||||
{
|
{
|
||||||
throw new SecurityException("User is not allowed access from this device.");
|
throw new SecurityException("User is not allowed access at this time.");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(request.DeviceId))
|
||||||
|
{
|
||||||
|
if (!_deviceManager.CanAccessDevice(user.Id.ToString("N"), request.DeviceId))
|
||||||
|
{
|
||||||
|
throw new SecurityException("User is not allowed access from this device.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,12 +43,12 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override double? GetDefaultPrimaryImageAspectRatio()
|
//public override double? GetDefaultPrimaryImageAspectRatio()
|
||||||
{
|
//{
|
||||||
double value = 16;
|
// double value = 16;
|
||||||
value /= 9;
|
// value /= 9;
|
||||||
|
|
||||||
return value;
|
// return value;
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,13 +31,13 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
PhysicalFolderIds = EmptyGuidArray;
|
PhysicalFolderIds = EmptyGuidArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override double? GetDefaultPrimaryImageAspectRatio()
|
//public override double? GetDefaultPrimaryImageAspectRatio()
|
||||||
{
|
//{
|
||||||
double value = 16;
|
// double value = 16;
|
||||||
value /= 9;
|
// value /= 9;
|
||||||
|
|
||||||
return value;
|
// return value;
|
||||||
}
|
//}
|
||||||
|
|
||||||
[IgnoreDataMember]
|
[IgnoreDataMember]
|
||||||
public override bool SupportsPlayedStatus
|
public override bool SupportsPlayedStatus
|
||||||
|
@ -58,13 +58,13 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override double? GetDefaultPrimaryImageAspectRatio()
|
//public override double? GetDefaultPrimaryImageAspectRatio()
|
||||||
{
|
//{
|
||||||
double value = 16;
|
// double value = 16;
|
||||||
value /= 9;
|
// value /= 9;
|
||||||
|
|
||||||
return value;
|
// return value;
|
||||||
}
|
//}
|
||||||
|
|
||||||
public override int GetChildCount(User user)
|
public override int GetChildCount(User user)
|
||||||
{
|
{
|
||||||
|
@ -78,6 +78,14 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override double? GetDefaultPrimaryImageAspectRatio()
|
||||||
|
{
|
||||||
|
double value = 16;
|
||||||
|
value /= 9;
|
||||||
|
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
public override string CreatePresentationUniqueKey()
|
public override string CreatePresentationUniqueKey()
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrWhiteSpace(PrimaryVersionId))
|
if (!string.IsNullOrWhiteSpace(PrimaryVersionId))
|
||||||
|
@ -530,7 +530,8 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
{
|
{
|
||||||
var seconds = Math.Round(TimeSpan.FromTicks(state.StartTimeTicks ?? 0).TotalSeconds);
|
var seconds = Math.Round(TimeSpan.FromTicks(state.StartTimeTicks ?? 0).TotalSeconds);
|
||||||
|
|
||||||
var setPtsParam = state.CopyTimestamps
|
// hls always copies timestamps
|
||||||
|
var setPtsParam = state.CopyTimestamps || state.TranscodingType != TranscodingJobType.Progressive
|
||||||
? string.Empty
|
? string.Empty
|
||||||
: string.Format(",setpts=PTS -{0}/TB", seconds.ToString(_usCulture));
|
: string.Format(",setpts=PTS -{0}/TB", seconds.ToString(_usCulture));
|
||||||
|
|
||||||
@ -1083,7 +1084,8 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state.SubtitleStream != null && state.SubtitleStream.IsTextSubtitleStream && state.SubtitleDeliveryMethod == SubtitleDeliveryMethod.Encode && !state.CopyTimestamps)
|
var isCopyingTimestamps = state.CopyTimestamps || state.TranscodingType != TranscodingJobType.Progressive;
|
||||||
|
if (state.SubtitleStream != null && state.SubtitleStream.IsTextSubtitleStream && state.SubtitleDeliveryMethod == SubtitleDeliveryMethod.Encode && !isCopyingTimestamps)
|
||||||
{
|
{
|
||||||
var seconds = TimeSpan.FromTicks(state.StartTimeTicks ?? 0).TotalSeconds;
|
var seconds = TimeSpan.FromTicks(state.StartTimeTicks ?? 0).TotalSeconds;
|
||||||
|
|
||||||
|
@ -163,6 +163,14 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
|
|
||||||
public bool DeInterlace(string videoCodec, bool forceDeinterlaceIfSourceIsInterlaced)
|
public bool DeInterlace(string videoCodec, bool forceDeinterlaceIfSourceIsInterlaced)
|
||||||
{
|
{
|
||||||
|
var videoStream = VideoStream;
|
||||||
|
var isInputInterlaced = videoStream != null && videoStream.IsInterlaced;
|
||||||
|
|
||||||
|
if (!isInputInterlaced)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Support general param
|
// Support general param
|
||||||
if (BaseRequest.DeInterlace)
|
if (BaseRequest.DeInterlace)
|
||||||
{
|
{
|
||||||
@ -179,8 +187,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
|
|
||||||
if (forceDeinterlaceIfSourceIsInterlaced)
|
if (forceDeinterlaceIfSourceIsInterlaced)
|
||||||
{
|
{
|
||||||
var videoStream = VideoStream;
|
if (isInputInterlaced)
|
||||||
if (videoStream != null && videoStream.IsInterlaced)
|
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion("3.2.32.15")]
|
[assembly: AssemblyVersion("3.2.32.16")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user