mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
commit
859a8f9587
@ -499,7 +499,7 @@ namespace Emby.Server.Implementations.Dto
|
|||||||
|
|
||||||
if (fields.Contains(ItemFields.BasicSyncInfo) || fields.Contains(ItemFields.SyncInfo))
|
if (fields.Contains(ItemFields.BasicSyncInfo) || fields.Contains(ItemFields.SyncInfo))
|
||||||
{
|
{
|
||||||
var userCanSync = user != null && user.Policy.EnableSync;
|
var userCanSync = user != null && user.Policy.EnableContentDownloading;
|
||||||
if (userCanSync && _syncManager.SupportsSync(item))
|
if (userCanSync && _syncManager.SupportsSync(item))
|
||||||
{
|
{
|
||||||
dto.SupportsSync = true;
|
dto.SupportsSync = true;
|
||||||
|
@ -942,7 +942,8 @@ namespace Emby.Server.Implementations.Library
|
|||||||
{
|
{
|
||||||
return new UserPolicy
|
return new UserPolicy
|
||||||
{
|
{
|
||||||
EnableSync = true
|
EnableContentDownloading = true,
|
||||||
|
EnableSyncTranscoding = true
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -422,7 +422,7 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
|
|||||||
{
|
{
|
||||||
if (!string.IsNullOrWhiteSpace(epgChannel.Name))
|
if (!string.IsNullOrWhiteSpace(epgChannel.Name))
|
||||||
{
|
{
|
||||||
tunerChannel.Name = epgChannel.Name;
|
//tunerChannel.Name = epgChannel.Name;
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrWhiteSpace(epgChannel.ImageUrl))
|
if (!string.IsNullOrWhiteSpace(epgChannel.ImageUrl))
|
||||||
{
|
{
|
||||||
|
@ -715,7 +715,8 @@ namespace Emby.Server.Implementations.Session
|
|||||||
ClientName = session.Client,
|
ClientName = session.Client,
|
||||||
DeviceId = session.DeviceId,
|
DeviceId = session.DeviceId,
|
||||||
IsPaused = info.IsPaused,
|
IsPaused = info.IsPaused,
|
||||||
PlaySessionId = info.PlaySessionId
|
PlaySessionId = info.PlaySessionId,
|
||||||
|
IsAutomated = isAutomated
|
||||||
|
|
||||||
}, _logger);
|
}, _logger);
|
||||||
|
|
||||||
|
@ -13,10 +13,7 @@ using System.IO;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using MediaBrowser.Common.IO;
|
|
||||||
using MediaBrowser.Controller.IO;
|
|
||||||
using MediaBrowser.Controller.Net;
|
using MediaBrowser.Controller.Net;
|
||||||
using MediaBrowser.Model.IO;
|
|
||||||
|
|
||||||
namespace MediaBrowser.Api.Playback.Hls
|
namespace MediaBrowser.Api.Playback.Hls
|
||||||
{
|
{
|
||||||
|
@ -89,6 +89,7 @@ namespace MediaBrowser.Api.Playback.Hls
|
|||||||
public string SegmentId { get; set; }
|
public string SegmentId { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Authenticated]
|
||||||
public class DynamicHlsService : BaseHlsService
|
public class DynamicHlsService : BaseHlsService
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -76,6 +76,7 @@ namespace MediaBrowser.Api.Playback.Hls
|
|||||||
public string SegmentId { get; set; }
|
public string SegmentId { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Authenticated]
|
||||||
public class HlsSegmentService : BaseApiService
|
public class HlsSegmentService : BaseApiService
|
||||||
{
|
{
|
||||||
private readonly IServerApplicationPaths _appPaths;
|
private readonly IServerApplicationPaths _appPaths;
|
||||||
|
@ -20,6 +20,7 @@ namespace MediaBrowser.Api.Playback.Hls
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class VideoHlsService
|
/// Class VideoHlsService
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Authenticated]
|
||||||
public class VideoHlsService : BaseHlsService
|
public class VideoHlsService : BaseHlsService
|
||||||
{
|
{
|
||||||
public object Get(GetLiveHlsStream request)
|
public object Get(GetLiveHlsStream request)
|
||||||
|
@ -62,6 +62,8 @@ namespace MediaBrowser.Api.Playback.Progressive
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class VideoService
|
/// Class VideoService
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
// TODO: In order to autheneticate this in the future, Dlna playback will require updating
|
||||||
|
//[Authenticated]
|
||||||
public class VideoService : BaseProgressiveStreamingService
|
public class VideoService : BaseProgressiveStreamingService
|
||||||
{
|
{
|
||||||
public VideoService(IServerConfigurationManager serverConfig, IUserManager userManager, ILibraryManager libraryManager, IIsoManager isoManager, IMediaEncoder mediaEncoder, IFileSystem fileSystem, IDlnaManager dlnaManager, ISubtitleEncoder subtitleEncoder, IDeviceManager deviceManager, IMediaSourceManager mediaSourceManager, IZipClient zipClient, IJsonSerializer jsonSerializer, IAuthorizationContext authorizationContext, IImageProcessor imageProcessor) : base(serverConfig, userManager, libraryManager, isoManager, mediaEncoder, fileSystem, dlnaManager, subtitleEncoder, deviceManager, mediaSourceManager, zipClient, jsonSerializer, authorizationContext, imageProcessor)
|
public VideoService(IServerConfigurationManager serverConfig, IUserManager userManager, ILibraryManager libraryManager, IIsoManager isoManager, IMediaEncoder mediaEncoder, IFileSystem fileSystem, IDlnaManager dlnaManager, ISubtitleEncoder subtitleEncoder, IDeviceManager deviceManager, IMediaSourceManager mediaSourceManager, IZipClient zipClient, IJsonSerializer jsonSerializer, IAuthorizationContext authorizationContext, IImageProcessor imageProcessor) : base(serverConfig, userManager, libraryManager, isoManager, mediaEncoder, fileSystem, dlnaManager, subtitleEncoder, deviceManager, mediaSourceManager, zipClient, jsonSerializer, authorizationContext, imageProcessor)
|
||||||
|
@ -58,7 +58,7 @@ namespace MediaBrowser.Api.Session
|
|||||||
|
|
||||||
void _sessionManager_PlaybackProgress(object sender, PlaybackProgressEventArgs e)
|
void _sessionManager_PlaybackProgress(object sender, PlaybackProgressEventArgs e)
|
||||||
{
|
{
|
||||||
SendData(false);
|
SendData(!e.IsAutomated);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _sessionManager_PlaybackStopped(object sender, PlaybackStopEventArgs e)
|
void _sessionManager_PlaybackStopped(object sender, PlaybackStopEventArgs e)
|
||||||
|
@ -16,6 +16,7 @@ namespace MediaBrowser.Controller.Library
|
|||||||
public BaseItemInfo MediaInfo { get; set; }
|
public BaseItemInfo MediaInfo { get; set; }
|
||||||
public string MediaSourceId { get; set; }
|
public string MediaSourceId { get; set; }
|
||||||
public bool IsPaused { get; set; }
|
public bool IsPaused { get; set; }
|
||||||
|
public bool IsAutomated { get; set; }
|
||||||
|
|
||||||
public string DeviceId { get; set; }
|
public string DeviceId { get; set; }
|
||||||
public string DeviceName { get; set; }
|
public string DeviceName { get; set; }
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
SetRepeatMode = 29,
|
SetRepeatMode = 29,
|
||||||
ChannelUp = 30,
|
ChannelUp = 30,
|
||||||
ChannelDown = 31,
|
ChannelDown = 31,
|
||||||
SetMaxStreamingBitrate = 31
|
SetMaxStreamingBitrate = 31,
|
||||||
|
Guide = 32
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -50,7 +50,6 @@ namespace MediaBrowser.Model.Users
|
|||||||
/// Gets or sets a value indicating whether [enable synchronize].
|
/// Gets or sets a value indicating whether [enable synchronize].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value><c>true</c> if [enable synchronize]; otherwise, <c>false</c>.</value>
|
/// <value><c>true</c> if [enable synchronize]; otherwise, <c>false</c>.</value>
|
||||||
public bool EnableSync { get; set; }
|
|
||||||
public bool EnableSyncTranscoding { get; set; }
|
public bool EnableSyncTranscoding { get; set; }
|
||||||
|
|
||||||
public string[] EnabledDevices { get; set; }
|
public string[] EnabledDevices { get; set; }
|
||||||
@ -71,7 +70,6 @@ namespace MediaBrowser.Model.Users
|
|||||||
|
|
||||||
public UserPolicy()
|
public UserPolicy()
|
||||||
{
|
{
|
||||||
EnableSync = true;
|
|
||||||
EnableSyncTranscoding = true;
|
EnableSyncTranscoding = true;
|
||||||
|
|
||||||
EnableMediaPlayback = true;
|
EnableMediaPlayback = true;
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion("3.2.13.3")]
|
[assembly: AssemblyVersion("3.2.13.4")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user