no message

This commit is contained in:
Roger Far 2022-02-06 16:25:13 -07:00
parent 6a2533aa3b
commit d7b22ab433
2 changed files with 5 additions and 2 deletions

View file

@ -117,6 +117,7 @@ export class AddNewTorrentComponent implements OnInit {
torrent.torrentRetryAttempts = this.torrentRetryAttempts;
torrent.downloadRetryAttempts = this.downloadRetryAttempts;
torrent.deleteOnError = this.torrentDeleteOnError;
torrent.lifetime = this.torrentLifetime;
if (this.magnetLink) {
this.torrentService.uploadMagnet(this.magnetLink, torrent).subscribe(

View file

@ -294,10 +294,12 @@ namespace RdtClient.Service.Services
Log($"Torrent has reached its {torrent.Lifetime} minutes lifetime, marking as error", torrent);
await _torrents.UpdateRetry(torrent.TorrentId, null, 99);
await _torrents.UpdateError(torrent.TorrentId, "Torrent expired in RealDebrid Client");
await _torrents.UpdateRetry(torrent.TorrentId, null, torrent.TorrentRetryAttempts);
await _torrents.UpdateComplete(torrent.TorrentId, $"Torrent lifetime of {torrent.Lifetime} minutes reached", DateTimeOffset.UtcNow, false);
}
torrents = await _torrents.Get();
torrents = torrents.Where(m => m.Completed == null).ToList();
// Only poll Real-Debrid every second when a hub is connected, otherwise every 30 seconds