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

Cannot find images error during upload if one volume title is a substring of another volume title #36

Open
spacehamster opened this issue Sep 25, 2024 · 0 comments

Comments

@spacehamster
Copy link

There is an issue with this line here

if (webkitRelativePath.startsWith(key)) {

If you attempt to upload volumes named Volume 1 and Volume 1.5, the image path Manga Title/Volume 1.5/Image.jpg will match against the volume key Manga Title/Volume 1 and be added to the Volume 1 instead of Volume 1.5. Afterwards, this causes the upload to fail as it can't find any images for Volume 1.5. Changing the line to

if (webkitRelativePath.startsWith(key + '/')) {

seems to fix it.

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

No branches or pull requests

1 participant