From 73dcc7bcb1c229d8ec3f9819387ac00a3838ffb0 Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 6 Jul 2020 23:21:26 -0400 Subject: [PATCH] Fix download cache not working for a source name change --- .../java/eu/kanade/tachiyomi/data/download/DownloadCache.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadCache.kt b/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadCache.kt index b937c7a2f0..900c9dbcf5 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadCache.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadCache.kt @@ -128,7 +128,7 @@ class DownloadCache( .orEmpty() .associate { it.name to SourceDirectory(it) } .mapNotNullKeys { entry -> - onlineSources.find { provider.getSourceDirName(it) == entry.key }?.id + onlineSources.find { provider.getSourceDirName(it).toLowerCase() == entry.key?.toLowerCase() }?.id } rootDir.files = sourceDirs