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 save the book #12

Open
grapao opened this issue Jan 25, 2025 · 9 comments
Open

Cannot save the book #12

grapao opened this issue Jan 25, 2025 · 9 comments

Comments

@grapao
Copy link

grapao commented Jan 25, 2025

I read the issues of others and I have a mix of the same types
First I'm on M3, Sequoia 15.1.1, Books 7.1
Everything is fine until I try to open the EPUB in the book app so it can decrypt and save it but it just prints in the terminal "Unbalanced calls to begin/end appearance transitions for <BKUpgradeViewController: 0x117faf9c0>." and doesn't ask me where I want the file saved or anything.
I tried using the V2 release and then I downloaded the main branch zip, both time same issue.
Maybe I'm doing something wrong...

@AngeloD2022
Copy link
Contributor

When you run inject.sh, does it begin with printing UNFAIR!?

@grapao
Copy link
Author

grapao commented Jan 25, 2025

Yes it does, but then it says "Injected Successfully !"

@AngeloD2022
Copy link
Contributor

Could you specify the name of the asset you're trying to decrypt?

@grapao
Copy link
Author

grapao commented Jan 27, 2025

It's called "Hunter X Hunter - Tome 37", ISBN-13: 9782505085034
I also put below the screenshot of my terminal in case you need it
Image

@AngeloD2022
Copy link
Contributor

AngeloD2022 commented Jan 27, 2025

Can you verify that DRM exists in the contents of that EPUB? You should be able to get to it by navigating to the folder proceeding Selected folder: in the log that you sent. From there, right click the EPUB file and select "view package contents." Check if the content in that EPUB is encrypted.

It also appears that the item you specified is not available in the US.

@grapao
Copy link
Author

grapao commented Jan 27, 2025

I am French and the book is in French too, did you need to check something specific about it?
When I open "page0001.xhtml" this is what I see:

Image

So I assume it is encrypted, here is the EPUB structure

Image

@AngeloD2022
Copy link
Contributor

Okay, so when you open the book in the app, do you see a dialog to decrypt it, or no?

@grapao
Copy link
Author

grapao commented Jan 28, 2025

No it doesn't but I think I found the issue
When I try with another EPUB that I have there is a popup asking me if I want to decrypt it but for the EPUB that I mentioned earlier there isn't
The only difference between them is that the EPUB I try to decrypt is stored in some kind of list in the book app

Image

The one on the left is the one I want to decrypt, but when I click on it, instead of opening it directly it opens the list of the whole series of book that it belongs too

Image

Then I need to scroll all the way down to see it (because it's the last book of the series) and only then when I click it it opens it, but this time no popup asking me to save it

@AngeloD2022
Copy link
Contributor

Okay, it sounds to me like the book open notification is not being triggered. I'll need to investigate that.

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

2 participants