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

(cherry picked from commit 0c7b1bda7f3e9bf3b017b734f64f3ad4b093c22a)
This commit is contained in:
AntsyLich 2022-09-08 03:02:06 +06:00 committed by Jobobby04
parent 4a46117ba7
commit 0e2dba8cd4

View File

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