Browse Source

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

AntsyLich 2 years ago
parent
commit
0c7b1bda7f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/src/main/java/eu/kanade/tachiyomi/source/LocalSource.kt

+ 1 - 0
app/src/main/java/eu/kanade/tachiyomi/source/LocalSource.kt

@@ -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