Skip to content

Commit

Permalink
Fixed: Indexer flags for torrent release pushes
Browse files Browse the repository at this point in the history
(cherry picked from commit 47ba002806fe2c2004a649aa193ae318343a84e4)
  • Loading branch information
mynameisbogdan committed May 5, 2024
1 parent f4a02ff commit a25e5aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Lidarr.Api.V1/Indexers/ReleaseResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ public static ReleaseInfo ToModel(this ReleaseResource resource)
MagnetUrl = resource.MagnetUrl,
InfoHash = resource.InfoHash,
Seeders = resource.Seeders,
Peers = (resource.Seeders.HasValue && resource.Leechers.HasValue) ? (resource.Seeders + resource.Leechers) : null
Peers = (resource.Seeders.HasValue && resource.Leechers.HasValue) ? (resource.Seeders + resource.Leechers) : null,
IndexerFlags = (IndexerFlags)resource.IndexerFlags
};
}
else
Expand Down

0 comments on commit a25e5aa

Please sign in to comment.