Mark ConnectorId to not use again if there is no image-urls

This commit is contained in:
2025-09-05 02:36:26 +02:00
parent 65418c0495
commit e0735eea0f

View File

@@ -66,6 +66,9 @@ public class DownloadChapterFromMangaconnectorWorker(MangaConnectorId<Chapter> c
if (imageUrls.Length < 1)
{
Log.Info($"No imageUrls for chapter {chapter}");
chId.UseForDownload = false; // Do not try to download from this again
if(await DbContext.Sync(CancellationToken) is { success: false } result)
Log.Error(result.exceptionMessage);
return [];
}
string saveArchiveFilePath = chapter.FullArchiveFilePath;