Skip to content

fix: show placeholder for missing resources instead of silently dropping#133

Open
yaniv-golan wants to merge 1 commit intovzhd1701:masterfrom
yaniv-golan:fix/missing-resource-placeholder
Open

fix: show placeholder for missing resources instead of silently dropping#133
yaniv-golan wants to merge 1 commit intovzhd1701:masterfrom
yaniv-golan:fix/missing-resource-placeholder

Conversation

@yaniv-golan
Copy link
Copy Markdown

Summary

  • When an en-media tag references a resource whose binary data is not included in the ENEX export, the block was silently removed with only a DEBUG log
  • Now replaces the missing block with a visible text placeholder: [Missing resource: hash <md5> — not included in ENEX export]
  • Log level upgraded from DEBUG to WARNING with the MD5 hash included

This helps users identify what was lost during import and trace it back to the original Evernote note.

Test plan

  • New test test_resolve_resources_missing_replaced_with_placeholder
  • Existing tests pass
  • Manually verified with real ENEX import containing notes with missing resources

When an en-media tag references a resource not included in the ENEX
export, replace the block with a visible text marker containing the
MD5 hash instead of silently removing it. Log at WARNING level.
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