/// <summary>
        /// Returns true if a torrent is eligible to download.
        /// </summary>
        private async Task <bool> IsTorrentEligibleToDownloadAsync(Torrent torrent)
        {
            try {
                bool isEligible = !await _historyRepo.AnyAsync(torrent.Title);

                _log.LogDebug($"{torrent.Title} - Eligible for download: {isEligible}");

                return(isEligible);
            }
            catch (Exception ex) {
                _log.LogError(ex, $"Unable to get eligiblity for download due to error. Torrent title: {torrent.Title}");
                return(false);
            }
        }