1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-01-10 23:29:53 +02:00

Fixed: Changing Release Type in Manage Episodes

Closes #6706
This commit is contained in:
Bogdan 2024-04-10 02:14:56 +03:00 committed by GitHub
parent 1fcd2b492c
commit 476e7a7b94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,6 +5,7 @@
using NzbDrone.Core.DecisionEngine.Specifications;
using NzbDrone.Core.Languages;
using NzbDrone.Core.MediaFiles;
using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.Qualities;
using Sonarr.Api.V3.CustomFormats;
using Sonarr.Http.REST;
@ -26,7 +27,7 @@ public class EpisodeFileResource : RestResource
public List<CustomFormatResource> CustomFormats { get; set; }
public int CustomFormatScore { get; set; }
public int? IndexerFlags { get; set; }
public int? ReleaseType { get; set; }
public ReleaseType? ReleaseType { get; set; }
public MediaInfoResource MediaInfo { get; set; }
public bool QualityCutoffNotMet { get; set; }
@ -64,7 +65,7 @@ public static EpisodeFileResource ToResource(this EpisodeFile model, NzbDrone.Co
CustomFormats = customFormats.ToResource(false),
CustomFormatScore = customFormatScore,
IndexerFlags = (int)model.IndexerFlags,
ReleaseType = (int)model.ReleaseType,
ReleaseType = model.ReleaseType,
};
}
}