Skip to content

fix: normalize offline epub resource keys#702

Merged
everpcpc merged 2 commits intomainfrom
codex/fix-epub-offline-resource-key
Mar 28, 2026
Merged

fix: normalize offline epub resource keys#702
everpcpc merged 2 commits intomainfrom
codex/fix-epub-offline-resource-key

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

@everpcpc everpcpc commented Mar 28, 2026

Problem

EPUB offline resource lookup reused raw WebPub manifest URLs as local file keys. That leaked server URL shape into local paths, produced confusing Invalid file URL errors, and made offline resolution depend on transport-layer URL formatting.

Approach

Align offline EPUB lookup with Komga's normalized resource keys, extract EPUB entries using those normalized keys, preserve fallback lookup for previously downloaded on-disk layouts, and report normalized chapter keys when a local resource is missing.

Scope

  • normalize offline WebPub resource paths from Komga /resource/ keys
  • remove package-document fallback from EPUB extraction
  • keep legacy local path lookup compatibility for existing downloads
  • bump CURRENT_PROJECT_VERSION to 385

Validation

  • make format
  • make build

Align offline EPUB resource lookup with Komga normalized resource keys instead of raw manifest URLs.

Keep legacy on-disk lookup compatibility for existing downloads and report normalized chapter keys when local resources are missing.
@everpcpc everpcpc merged commit 93de8a5 into main Mar 28, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/fix-epub-offline-resource-key branch March 28, 2026 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant