From 1e9b9dabe3fd0aaa7497a330ad7a7c98ddd79427 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 real commits coming soon --- .../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 3fed672033..4741d47282 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 @@ -129,7 +129,7 @@ class DownloadCache( val sourceDirs = getDirectoryFromPreference().listFiles().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 } val db: DatabaseHelper by injectLazy()