[TB] use torrentClientTorrent (if it's passed) instead of fetching in UpdateData
Makes `ProviderUpdater` only cause 2 API requests each run rather than `O(n)` where `n` is the number of torrents
This commit is contained in:
parent
aa6e6c7df5
commit
ab5a013edb
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ public class TorBoxTorrentClient(ILogger<TorBoxTorrentClient> logger, IHttpClien
|
|||
return torrent;
|
||||
}
|
||||
|
||||
var rdTorrent = await GetInfo(torrent.Hash) ?? throw new($"Resource not found");
|
||||
var rdTorrent = torrentClientTorrent ?? await GetInfo(torrent.Hash) ?? throw new($"Resource not found");
|
||||
|
||||
if (!String.IsNullOrWhiteSpace(rdTorrent.Filename))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue