mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
hotfix continue, not break - add slight delay - log params
This commit is contained in:
@@ -44,7 +44,8 @@ public partial class TorrentioCrawler(
|
|||||||
if (items.Count == 0)
|
if (items.Count == 0)
|
||||||
{
|
{
|
||||||
logger.LogInformation("No items to process for {TorrentioInstance}", instance.Name);
|
logger.LogInformation("No items to process for {TorrentioInstance}", instance.Name);
|
||||||
break;
|
await Task.Delay(10000);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var newTorrents = new List<Torrent>();
|
var newTorrents = new List<Torrent>();
|
||||||
|
|||||||
@@ -17,6 +17,11 @@ public class ImdbMongoDbService
|
|||||||
|
|
||||||
public async Task<IReadOnlyList<ImdbEntry>> GetImdbEntriesForRequests(string startYear, int requestLimit, string? startingId = null)
|
public async Task<IReadOnlyList<ImdbEntry>> GetImdbEntriesForRequests(string startYear, int requestLimit, string? startingId = null)
|
||||||
{
|
{
|
||||||
|
_logger.LogInformation("Getting IMDB entries for requests");
|
||||||
|
_logger.LogInformation("Start year: {StartYear}", startYear);
|
||||||
|
_logger.LogInformation("Request limit: {RequestLimit}", requestLimit);
|
||||||
|
_logger.LogInformation("Starting ID: {StartingId}", startingId);
|
||||||
|
|
||||||
var sort = Builders<ImdbEntry>.Sort
|
var sort = Builders<ImdbEntry>.Sort
|
||||||
.Descending(e => e.StartYear)
|
.Descending(e => e.StartYear)
|
||||||
.Descending(e => e.ImdbId);
|
.Descending(e => e.ImdbId);
|
||||||
|
|||||||
Reference in New Issue
Block a user