Fixed: Album percentOfTracks named incorrectly

pull/509/head
Qstick 6 years ago
parent de224bcce5
commit dc1eb63099

@ -10,7 +10,7 @@ namespace Lidarr.Api.V1.Albums
public int TotalTrackCount { get; set; } public int TotalTrackCount { get; set; }
public long SizeOnDisk { get; set; } public long SizeOnDisk { get; set; }
public decimal PercentOfEpisodes public decimal PercentOfTracks
{ {
get get
{ {

@ -50,8 +50,8 @@ namespace Lidarr.Api.V1.Tracks
protected TrackResource GetTrack(int id) protected TrackResource GetTrack(int id)
{ {
var episode = _trackService.GetTrack(id); var track = _trackService.GetTrack(id);
var resource = MapToResource(episode, true, true); var resource = MapToResource(track, true, true);
return resource; return resource;
} }

Loading…
Cancel
Save