Added check to prevent creation of empty chapter files
This commit is contained in:
parent
2872eeea09
commit
d211dd2d01
@ -241,6 +241,15 @@ public abstract class MangaConnector : GlobalBase
|
||||
|
||||
int chapter = 0;
|
||||
//Download all Images to temporary Folder
|
||||
if (imageUrls.Length == 0)
|
||||
{
|
||||
Log("No images found");
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
|
||||
File.SetUnixFileMode(saveArchiveFilePath, UserRead | UserWrite | UserExecute | GroupRead | GroupWrite | GroupExecute);
|
||||
Directory.Delete(tempFolder, true);
|
||||
progressToken?.Complete();
|
||||
return HttpStatusCode.NoContent;
|
||||
}
|
||||
foreach (string imageUrl in imageUrls)
|
||||
{
|
||||
string extension = imageUrl.Split('.')[^1].Split('?')[0];
|
||||
|
Loading…
Reference in New Issue
Block a user