mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-28 11:28:27 +01:00
added cloud sync model objects
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using MediaBrowser.Model.Extensions;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace MediaBrowser.Model.Entities
|
||||
{
|
||||
@@ -138,8 +137,11 @@ namespace MediaBrowser.Model.Entities
|
||||
|
||||
string codec = Codec ?? string.Empty;
|
||||
|
||||
// sub = external .sub file
|
||||
|
||||
return StringHelper.IndexOfIgnoreCase(codec, "pgs") == -1 &&
|
||||
StringHelper.IndexOfIgnoreCase(codec, "dvd") == -1;
|
||||
StringHelper.IndexOfIgnoreCase(codec, "dvd") == -1 &&
|
||||
!StringHelper.EqualsIgnoreCase(codec, "sub");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -304,6 +304,7 @@
|
||||
<Compile Include="Sync\SyncSchedule.cs" />
|
||||
<Compile Include="Sync\SyncScheduleQuery.cs" />
|
||||
<Compile Include="Sync\SyncScheduleRequest.cs" />
|
||||
<Compile Include="Sync\SyncTarget.cs" />
|
||||
<Compile Include="System\LogFile.cs" />
|
||||
<Compile Include="Themes\AppTheme.cs" />
|
||||
<Compile Include="Themes\AppThemeInfo.cs" />
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace MediaBrowser.Model.Sync
|
||||
/// Gets or sets the device identifier.
|
||||
/// </summary>
|
||||
/// <value>The device identifier.</value>
|
||||
public string DeviceId { get; set; }
|
||||
public string TargetId { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the item identifier.
|
||||
/// </summary>
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace MediaBrowser.Model.Sync
|
||||
/// Gets or sets the device identifier.
|
||||
/// </summary>
|
||||
/// <value>The device identifier.</value>
|
||||
public List<string> DeviceIds { get; set; }
|
||||
public List<string> TargetIds { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the item identifier.
|
||||
/// </summary>
|
||||
@@ -22,7 +22,7 @@ namespace MediaBrowser.Model.Sync
|
||||
|
||||
public SyncJobRequest()
|
||||
{
|
||||
DeviceIds = new List<string>();
|
||||
TargetIds = new List<string>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace MediaBrowser.Model.Sync
|
||||
/// Gets or sets the device identifier.
|
||||
/// </summary>
|
||||
/// <value>The device identifier.</value>
|
||||
public List<string> DeviceIds { get; set; }
|
||||
public List<string> TargetIds { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the quality.
|
||||
/// </summary>
|
||||
@@ -17,7 +17,7 @@ namespace MediaBrowser.Model.Sync
|
||||
|
||||
public SyncScheduleRequest()
|
||||
{
|
||||
DeviceIds = new List<string>();
|
||||
TargetIds = new List<string>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
17
MediaBrowser.Model/Sync/SyncTarget.cs
Normal file
17
MediaBrowser.Model/Sync/SyncTarget.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
namespace MediaBrowser.Model.Sync
|
||||
{
|
||||
public class SyncTarget
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the identifier.
|
||||
/// </summary>
|
||||
/// <value>The identifier.</value>
|
||||
public string Id { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user