1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00

Remove DownloadProtocol from v3 ReleaseResource

This commit is contained in:
Mark McDowall 2019-04-11 23:41:06 -07:00
parent 877235c8a2
commit b60d5f837e

View File

@ -55,9 +55,6 @@ public class ReleaseResource : RestResource
public int? Leechers { get; set; } public int? Leechers { get; set; }
public DownloadProtocol Protocol { get; set; } public DownloadProtocol Protocol { get; set; }
//TODO: besides a test I don't think this is used...
public DownloadProtocol DownloadProtocol { get; set; }
public bool IsDaily { get; set; } public bool IsDaily { get; set; }
public bool IsAbsoluteNumbering { get; set; } public bool IsAbsoluteNumbering { get; set; }
public bool IsPossibleSpecialEpisode { get; set; } public bool IsPossibleSpecialEpisode { get; set; }
@ -160,7 +157,7 @@ public static ReleaseInfo ToModel(this ReleaseResource resource)
model.CommentUrl = resource.CommentUrl; model.CommentUrl = resource.CommentUrl;
model.IndexerId = resource.IndexerId; model.IndexerId = resource.IndexerId;
model.Indexer = resource.Indexer; model.Indexer = resource.Indexer;
model.DownloadProtocol = resource.DownloadProtocol; model.DownloadProtocol = resource.Protocol;
model.TvdbId = resource.TvdbId; model.TvdbId = resource.TvdbId;
model.TvRageId = resource.TvRageId; model.TvRageId = resource.TvRageId;
model.PublishDate = resource.PublishDate.ToUniversalTime(); model.PublishDate = resource.PublishDate.ToUniversalTime();