mirror of https://github.com/jellyfin/jellyfin.git
update sync scripts
This commit is contained in:
parent
e936f49518
commit
0c2489059d
|
@ -101,13 +101,6 @@ namespace Emby.Server.Implementations.Devices
|
||||||
{
|
{
|
||||||
IEnumerable<DeviceInfo> devices = _repo.GetDevices().OrderByDescending(i => i.DateLastModified);
|
IEnumerable<DeviceInfo> devices = _repo.GetDevices().OrderByDescending(i => i.DateLastModified);
|
||||||
|
|
||||||
if (query.SupportsContentUploading.HasValue)
|
|
||||||
{
|
|
||||||
var val = query.SupportsContentUploading.Value;
|
|
||||||
|
|
||||||
devices = devices.Where(i => GetCapabilities(i.Id).SupportsContentUploading == val);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (query.SupportsSync.HasValue)
|
if (query.SupportsSync.HasValue)
|
||||||
{
|
{
|
||||||
var val = query.SupportsSync.Value;
|
var val = query.SupportsSync.Value;
|
||||||
|
|
|
@ -237,9 +237,6 @@ namespace MediaBrowser.Api.Session
|
||||||
[ApiMember(Name = "SupportsMediaControl", Description = "Determines whether media can be played remotely.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "POST")]
|
[ApiMember(Name = "SupportsMediaControl", Description = "Determines whether media can be played remotely.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "POST")]
|
||||||
public bool SupportsMediaControl { get; set; }
|
public bool SupportsMediaControl { get; set; }
|
||||||
|
|
||||||
[ApiMember(Name = "SupportsContentUploading", Description = "Determines whether camera upload is supported.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "POST")]
|
|
||||||
public bool SupportsContentUploading { get; set; }
|
|
||||||
|
|
||||||
[ApiMember(Name = "SupportsSync", Description = "Determines whether sync is supported.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "POST")]
|
[ApiMember(Name = "SupportsSync", Description = "Determines whether sync is supported.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "POST")]
|
||||||
public bool SupportsSync { get; set; }
|
public bool SupportsSync { get; set; }
|
||||||
|
|
||||||
|
@ -560,8 +557,6 @@ namespace MediaBrowser.Api.Session
|
||||||
|
|
||||||
MessageCallbackUrl = request.MessageCallbackUrl,
|
MessageCallbackUrl = request.MessageCallbackUrl,
|
||||||
|
|
||||||
SupportsContentUploading = request.SupportsContentUploading,
|
|
||||||
|
|
||||||
SupportsSync = request.SupportsSync,
|
SupportsSync = request.SupportsSync,
|
||||||
|
|
||||||
SupportsPersistentIdentifier = request.SupportsPersistentIdentifier
|
SupportsPersistentIdentifier = request.SupportsPersistentIdentifier
|
||||||
|
|
|
@ -3,11 +3,6 @@ namespace MediaBrowser.Model.Devices
|
||||||
{
|
{
|
||||||
public class DeviceQuery
|
public class DeviceQuery
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets a value indicating whether [supports content uploading].
|
|
||||||
/// </summary>
|
|
||||||
/// <value><c>null</c> if [supports content uploading] contains no value, <c>true</c> if [supports content uploading]; otherwise, <c>false</c>.</value>
|
|
||||||
public bool? SupportsContentUploading { get; set; }
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether [supports unique identifier].
|
/// Gets or sets a value indicating whether [supports unique identifier].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -13,10 +13,8 @@ namespace MediaBrowser.Model.Session
|
||||||
|
|
||||||
public string MessageCallbackUrl { get; set; }
|
public string MessageCallbackUrl { get; set; }
|
||||||
|
|
||||||
public bool SupportsContentUploading { get; set; }
|
|
||||||
public bool SupportsPersistentIdentifier { get; set; }
|
public bool SupportsPersistentIdentifier { get; set; }
|
||||||
public bool SupportsSync { get; set; }
|
public bool SupportsSync { get; set; }
|
||||||
public bool SupportsOfflineAccess { get; set; }
|
|
||||||
|
|
||||||
public DeviceProfile DeviceProfile { get; set; }
|
public DeviceProfile DeviceProfile { get; set; }
|
||||||
public List<string> SupportedLiveMediaTypes { get; set; }
|
public List<string> SupportedLiveMediaTypes { get; set; }
|
||||||
|
|
Loading…
Reference in New Issue