no message
This commit is contained in:
parent
6a2533aa3b
commit
d7b22ab433
2 changed files with 5 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue