1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-22 07:42:28 +00:00

Fixed: Indexer flags for torrent release pushes

(cherry picked from commit 47ba002806fe2c2004a649aa193ae318343a84e4)
This commit is contained in:
Bogdan 2024-05-05 04:56:52 +03:00
parent f4a02ffc83
commit a25e5aae10

View file

@ -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