1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-18 21:50:33 +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), freeleech = (release.DownloadVolumeFactor == 0 ? true : false),
type = "movie", type = "movie",
size = (long)release.Size / (1024 * 1024), // This is in MB size = (long)release.Size / (1024 * 1024), // This is in MB
leechers = (int)release.Peers - (int)release.Seeders, leechers = (release.Peers ?? -1) - (release.Seeders ?? 0),
seeders = (int)release.Seeders, seeders = release.Seeders ?? -1,
publish_date = r.PublishDate == DateTime.MinValue ? null : release.PublishDate.ToUniversalTime().ToString("s") publish_date = r.PublishDate == DateTime.MinValue ? null : release.PublishDate.ToUniversalTime().ToString("s")
}; };
return item; return item;