1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-31 20:27:28 +00:00

PotatoFeed: default to -1 for leechers/seeders

This commit is contained in:
kaso17 2017-11-21 14:48:59 +01:00
parent 1db57a746b
commit c20688837f

View file

@ -382,8 +382,8 @@ namespace Jackett.Controllers.V20
freeleech = (release.DownloadVolumeFactor == 0 ? true : false),
type = "movie",
size = (long)release.Size / (1024 * 1024), // This is in MB
leechers = (int)release.Peers - (int)release.Seeders,
seeders = (int)release.Seeders,
leechers = (release.Peers ?? -1) - (release.Seeders ?? 0),
seeders = release.Seeders ?? -1,
publish_date = r.PublishDate == DateTime.MinValue ? null : release.PublishDate.ToUniversalTime().ToString("s")
};
return item;