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:
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),
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue