Test fix for Chapter FullArchiveFilePath throwing exception

This commit is contained in:
2025-10-06 21:35:14 +02:00
parent b2ca84cb5c
commit 196ff17339
4 changed files with 43 additions and 11 deletions

View File

@@ -70,7 +70,12 @@ public class DownloadChapterFromMangaconnectorWorker(MangaConnectorId<Chapter> c
Log.Error(result.exceptionMessage);
return [];
}
string saveArchiveFilePath = chapter.FullArchiveFilePath;
if (chapter.FullArchiveFilePath is not { } saveArchiveFilePath)
{
Log.Error("Failed getting saveArchiveFilePath");
return [];
}
Log.Debug($"Chapter path: {saveArchiveFilePath}");
//Check if Publication Directory already exists