Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update underscore prefix for image filenames #49

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

v2lmmj04
Copy link

@v2lmmj04 v2lmmj04 commented Jan 5, 2025

Fix for this issue: #39

Media files that are prefixed by an underscore do not get checked by Anki's "Check Media" functionality. That means if an Anki note that has been created or updated via this reader gets deleted later on, Anki users must manually find + delete the image files that were referenced by the note.

This PR changes the underscore prefix on the image filename to allow for "Check Media" to work for detecting unused media files. The prefix added is "mokuro_*" to solve the Anki issue + reduce collision chance with random files from other sources, and aligns with the following commit on a fork for the same purpose:

KojoZero@6d550cb

Copy link

vercel bot commented Jan 5, 2025

@v2lmmj04 is attempting to deploy a commit to the zxy101's projects Team on Vercel.

A member of the Team first needs to authorize it.

This was an alternative I was thinking of initially since it better namespaces the files, but wasn't sure about.

I saw this commit ended up going with this approach, so I'm aligning the PR to it in the end:

KojoZero@6d550cb
@v2lmmj04 v2lmmj04 changed the title Remove underscore prefix for image filenames Update underscore prefix for image filenames Jan 10, 2025
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