Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Fix Adding Books for Win32 #18

Merged
merged 5 commits into from
Oct 19, 2019

Conversation

caleywoods
Copy link
Contributor

This PR correctly allows users to add and read ePubs on at least Windows 10 x64 which fixes this issue. You can see screenshots here

The ID/Key was being set as the fully qualified path to the epub and it needed to be parsed to only take the name after the final \ character.

There is also a bit of whitespace cleanup in here since my editor strips it automatically on save. There is also a commit that corrected some typos.

Caley Woods added 5 commits October 6, 2019 12:45
On the win32 platform ID was coming as the fully qualified path to the
file which caused issues both adding the cover image and retreiving the
epub file from books.json.

We now split the ID on \ and take the last element which should be the
name of the key we need for the database.
@Janglee123 Janglee123 merged commit 7f4bfc4 into Janglee123:master Oct 19, 2019
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.

Unable to add books in Windows
2 participants