Skip to content

Commit

Permalink
Revert "Add SizeOnDisk and HasFile to MovieResource"
Browse files Browse the repository at this point in the history
This reverts commit 0ae8952.
  • Loading branch information
mynameisbogdan committed Jan 21, 2024
1 parent fcd1879 commit 84c2d7f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Radarr.Api.V3/Movies/MovieResource.cs
Expand Up @@ -50,12 +50,13 @@ public MovieResource()
public string YouTubeTrailerId { get; set; }
public string Studio { get; set; }

public bool HasFile { get; set; }

// View & Edit
public string Path { get; set; }
public int QualityProfileId { get; set; }

// Compatibility
public bool HasFile { get; set; }

// Editing Only
public bool Monitored { get; set; }
public MovieStatusType MinimumAvailability { get; set; }
Expand Down Expand Up @@ -90,8 +91,6 @@ public static MovieResource ToResource(this Movie model, int availDelay, MovieTr
return null;
}

var size = model.MovieFile?.Size ?? 0;

var movieFile = model.MovieFile?.ToResource(model, upgradableSpecification, formatCalculationService);

var translatedTitle = movieTranslation?.Title ?? model.Title;
Expand All @@ -110,9 +109,7 @@ public static MovieResource ToResource(this Movie model, int availDelay, MovieTr
InCinemas = model.MovieMetadata.Value.InCinemas,
PhysicalRelease = model.MovieMetadata.Value.PhysicalRelease,
DigitalRelease = model.MovieMetadata.Value.DigitalRelease,
HasFile = model.HasFile,

SizeOnDisk = size,
Status = model.MovieMetadata.Value.Status,
Overview = translatedOverview,

Expand Down

0 comments on commit 84c2d7f

Please sign in to comment.