소스 검색

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

AntsyLich 2 년 전
부모
커밋
0c7b1bda7f
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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