Skip to content
This repository was archived by the owner on Nov 11, 2026. It is now read-only.

fix: shared download cache - #2184

Merged
jmir1 merged 1 commit into
aniyomiorg:mainfrom
choppeh:bf/downloadcache
Oct 26, 2025
Merged

jmir1 merged 1 commit into
aniyomiorg:mainfrom
choppeh:bf/downloadcache

Conversation

@choppeh

@choppeh choppeh commented Oct 5, 2025

Copy link
Copy Markdown
Contributor

Closes #2136

The cache shared between anime and manga is overwritten and filtered by the extension name, so if the anime cache is written first and the cache invalidation time has not yet been reached, the manga cache will not have the same cache extension names loaded, so it will not be possible to verify downloads correctly.

SourceId is null, so mapNotNull will remove the manga extension directory, as sourceMap is from the anime extensions.

val sourceId = sourceMap[dir.name!!.lowercase()]

sourceMap: Manga

val sourceId = sourceMap[dir.name!!.lowercase()]

Cache loading
Animes

Mangas

@choppeh choppeh changed the title fix: download cache shared fix: shared download cache Oct 5, 2025
@choppeh
choppeh marked this pull request as draft October 5, 2025 07:00
@choppeh
choppeh marked this pull request as ready for review October 5, 2025 07:03
@jmir1
jmir1 merged commit 7a73c8b into aniyomiorg:main Oct 26, 2025
@choppeh
choppeh deleted the bf/downloadcache branch December 29, 2025 00:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Downloaded Chapters and Episodes doesn't have this icon (✅)

2 participants