Remove neko reference in dl cache

This commit is contained in:
Jay 2020-05-24 15:48:15 -04:00
parent a5c9411f29
commit f716307492

View File

@ -93,10 +93,12 @@ class DownloadCache(
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) {
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()) {
return listFiles.size
}