mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
rework dynamic quality options
This commit is contained in:
parent
7ad5a51828
commit
d0d225e0d1
1 changed files with 0 additions and 14 deletions
|
@ -27,13 +27,6 @@ namespace MediaBrowser.Api.Sync
|
||||||
public string Id { get; set; }
|
public string Id { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
[Route("/Sync/QualityOptions", "GET", Summary = "Gets quality options for a sync target.")]
|
|
||||||
public class GetQualityOptions : IReturn<List<SyncQualityOption>>
|
|
||||||
{
|
|
||||||
[ApiMember(Name = "TargetId", Description = "TargetId", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "GET")]
|
|
||||||
public string TargetId { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[Route("/Sync/Jobs/{Id}", "POST", Summary = "Updates a sync job.")]
|
[Route("/Sync/Jobs/{Id}", "POST", Summary = "Updates a sync job.")]
|
||||||
public class UpdateSyncJob : SyncJob, IReturnVoid
|
public class UpdateSyncJob : SyncJob, IReturnVoid
|
||||||
{
|
{
|
||||||
|
@ -229,13 +222,6 @@ namespace MediaBrowser.Api.Sync
|
||||||
return ToStaticFileResult(jobItem.OutputPath);
|
return ToStaticFileResult(jobItem.OutputPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
public object Get(GetQualityOptions request)
|
|
||||||
{
|
|
||||||
return ToOptimizedResult(_syncManager
|
|
||||||
.GetQualityOptions(request.TargetId)
|
|
||||||
.ToList());
|
|
||||||
}
|
|
||||||
|
|
||||||
public object Get(GetSyncDialogOptions request)
|
public object Get(GetSyncDialogOptions request)
|
||||||
{
|
{
|
||||||
var result = new SyncDialogOptions();
|
var result = new SyncDialogOptions();
|
||||||
|
|
Loading…
Reference in a new issue