Skip to content

Commit

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

Please sign in to comment.