Fix download cache not working for a source name change

real commits coming soon
This commit is contained in:
Jay 2020-07-06 23:21:26 -04:00
parent cfbc3156a1
commit 1e9b9dabe3

View File

@ -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()