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:
parent
1db57a746b
commit
c20688837f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue