mirror of
https://github.com/C9Glax/tranga.git
synced 2025-02-23 07:40:13 +01:00
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;
|
int chapter = 0;
|
||||||
//Download all Images to temporary Folder
|
//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)
|
foreach (string imageUrl in imageUrls)
|
||||||
{
|
{
|
||||||
string extension = imageUrl.Split('.')[^1].Split('?')[0];
|
string extension = imageUrl.Split('.')[^1].Split('?')[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user