-
Notifications
You must be signed in to change notification settings - Fork 7
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
Refactor devices, add cover size stuff #1
Conversation
* A lot more information (codenames, storage, etc) * Cover sizes * Cleaner code, easier to extend in the future * Codenames now match the internal layout (class -> family + optional secondary) * Based on firmware 4.18.13737 Also see https://gist.github.com/geek1011/613b34c23f026f7c39c50ee32f5e167e and shermp/Kobo-UNCaGED#16
N3_LIBRARY_FULL -> N3_FULL
Based on our (@geek1011, @NiLuJe) previous work for @shermp's Kobo-UNCaGED (shermp/Kobo-UNCaGED#17)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO:
- Write more tests
- Add more godoc comments
- Update my tools which depend on this
- Test cover generation (work will be in the covergen branch of kepubify)
Also, this is mostly ready for review now.
Have you thought about having a generic "fallback" device, name etc with safe defaults such that new devices can still use the library, even if they aren't supported yet? Also, this looks awesome. I'm inclined to switch to this library in Kobo-UNCaGED to avoid duplication of code. |
Turns out it's actually what I originally put: N3_LIBRARY_FULL
OK, I've tested the cover generation and some of the device detection as part of pgaskin/kepubify#44, and everything seems to work well. |
Yeah, I lifted it straight from the Kobo driver in Calibre, which is where I originally saw it. EDIT: Somewhere in our refactors, that little nugget of info was lost. My original comment was:
|
Unless anyone has more suggestions/objections, I'm planning to merge this after I write tests for the cover stuff. |
I've released this as v2. |
@shermp, are you planning on updating KU yourself? |
I was thinking of pulling in koboutils as a library and using it instead. No need to duplicate code/effort :) |
That was what I meant, but were you planning to implement it? |
Yeah. Want to finalize the changes to UNCaGED first before updating KU. |
Sounds good. |
Speaking of UNCaGED, would you be willing to have a look at the open PR at some point? I left it for a while, seeing as you were taking a break from Kobo stuff. |
Yep, will do today or tomorrow. I'll be taking another break afterwards until the next firmware release. |
Thanks |
Also see https://gist.github.com/geek1011/613b34c23f026f7c39c50ee32f5e167e and shermp/Kobo-UNCaGED#16
cc @shermp, @NiLuJe, @davidfor