Skip to content

Commit

Permalink
Fixed: Use of indexer flags for torrent release pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed May 4, 2024
1 parent c7ae6a7 commit 0141a3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Radarr.Api.V3/Indexers/ReleaseResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,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 0141a3d

Please sign in to comment.