mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 20:01:53 +01:00
Remove neko reference in dl cache
This commit is contained in:
parent
a5c9411f29
commit
f716307492
@ -93,10 +93,12 @@ class DownloadCache(
|
|||||||
|
|
||||||
if (forceCheckFolder) {
|
if (forceCheckFolder) {
|
||||||
|
|
||||||
val mangaDir = provider.findMangaDir(manga, sourceManager.getMangadex())
|
val source = sourceManager.get(manga.source) ?: return 0
|
||||||
|
val mangaDir = provider.findMangaDir(manga, source)
|
||||||
|
|
||||||
if (mangaDir != null) {
|
if (mangaDir != null) {
|
||||||
val listFiles = mangaDir.listFiles { dir, filename -> !filename.endsWith(Downloader.TMP_DIR_SUFFIX) }
|
val listFiles =
|
||||||
|
mangaDir.listFiles { _, filename -> !filename.endsWith(Downloader.TMP_DIR_SUFFIX) }
|
||||||
if (!listFiles.isNullOrEmpty()) {
|
if (!listFiles.isNullOrEmpty()) {
|
||||||
return listFiles.size
|
return listFiles.size
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user