Skip to content

Commit

Permalink
Fixed: Changing Release Type in Manage Episodes
Browse files Browse the repository at this point in the history
Closes #6706
  • Loading branch information
mynameisbogdan committed Apr 9, 2024
1 parent 1fcd2b4 commit 476e7a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Sonarr.Api.V3/EpisodeFiles/EpisodeFileResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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; }
Expand Down Expand Up @@ -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,
};
}
}
Expand Down

0 comments on commit 476e7a7

Please sign in to comment.