mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 20:31:02 -05:00
LocalSource: Create cover file if it doesn't exist (#7954)
This commit is contained in:
parent
032b377de7
commit
0c7b1bda7f
1 changed files with 1 additions and 0 deletions
|
@ -349,6 +349,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
|
||||||
|
|
Loading…
Reference in a new issue