LocalSource: Create cover file if it doesn't exist (#7954)

This commit is contained in:
AntsyLich 2022-09-08 03:02:06 +06:00 committed by GitHub
parent 032b377de7
commit 0c7b1bda7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -349,6 +349,7 @@ class LocalSource(
var coverFile = getCoverFile(manga.url, baseDirsFiles)
if (coverFile == null) {
coverFile = File(mangaDir.absolutePath, DEFAULT_COVER_NAME)
coverFile.createNewFile()
}
// It might not exist at this point