Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 06-28-2024, 04:52 AM   #1186
zzjing
Junior Member
zzjing began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jun 2024
Device: Kindle PW3
Hi kiwidude,

I know this is an odd request, but since it seems that Amazon is removing sideloaded books marked as EBOK, I'm trying to find a quick way to mark all my sideloaded books as PDOC instead. Is it possible to add another item to the fix menu to do just that? It should be just like "Fix ASIN for Kindle Fire" but instead of setting cdetype to EBOK, you set it to PDOC. It would be a godsend. I am trying to change them one by one with MobiMetaEditor and it's taking forever.

Thanks for the great work.
zzjing is offline   Reply With Quote
Old 06-28-2024, 01:30 PM   #1187
zzjing
Junior Member
zzjing began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jun 2024
Device: Kindle PW3
I decided to try to look at the code and see if I can hack it. In the process, I think I have found a bug in "Check missing EBOK cdetype". It seems that exth.cdetype is a byte string, so in check_mobi.py:
Code:
if exth.cdetype == 'EBOK':
always fails, and should be changed to
Code:
if exth.cdetype == b'EBOK':
Hope this helps.
zzjing is offline   Reply With Quote
Old 06-28-2024, 05:18 PM   #1188
Quoth
Reading till the spring
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 12,518
Karma: 94058919
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
I think that was a bug and they've stopped/fixed it?
Quoth is offline   Reply With Quote
Old 06-28-2024, 06:41 PM   #1189
zzjing
Junior Member
zzjing began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jun 2024
Device: Kindle PW3
Quote:
Originally Posted by Quoth View Post
I think that was a bug and they've stopped/fixed it?
Are you referring to the problem of sideloaded books disappearing on Kindle? It just happened to me for a second time. That's how I found my way here.

Where did it say it was fixed?
zzjing is offline   Reply With Quote
Old 06-29-2024, 12:39 AM   #1190
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by zzjing View Post
I decided to try to look at the code and see if I can hack it. In the process, I think I have found a bug in "Check missing EBOK cdetype". It seems that exth.cdetype is a byte string, so in check_mobi.py:
Code:
if exth.cdetype == 'EBOK':
always fails, and should be changed to
Code:
if exth.cdetype == b'EBOK':
Hope this helps.
Thanks for that, I can apply that fix. However I admit I know zero about MOBI format (this feature was added by someone else to the plugin). From looking at the code the existing "Fix ASIN for Kindle Fire" code actually sets the EBOK value to the asin for the book. So I am confused as to what you would try to do by adding another "Fix" feature to this plugin - what else is it going to set the EBOK value to?

In other words - if I push a new version of the plugin that corrects the bug allowing you to identify MOBI files that have no EBOK header set, is there any reason why you would not just then use the existing "Fix ASIN" feature to then change the books?
kiwidude is offline   Reply With Quote
Old 06-29-2024, 12:42 AM   #1191
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quality Check v1.13.11 released

Release Notes
https://github.com/kiwidude68/calibr...check-v1.13.11
kiwidude is offline   Reply With Quote
Old 06-29-2024, 01:29 AM   #1192
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 41,272
Karma: 158182188
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by kiwidude View Post
Thanks for that, I can apply that fix. However I admit I know zero about MOBI format (this feature was added by someone else to the plugin). From looking at the code the existing "Fix ASIN for Kindle Fire" code actually sets the EBOK value to the asin for the book. So I am confused as to what you would try to do by adding another "Fix" feature to this plugin - what else is it going to set the EBOK value to?

In other words - if I push a new version of the plugin that corrects the bug allowing you to identify MOBI files that have no EBOK header set, is there any reason why you would not just then use the existing "Fix ASIN" feature to then change the books?
There is an ongoing issue with Kindles and Amazon removing books. It seems that if the ebook CDEType is set to EBOK, the ASIN belongs to an existing Amazon ebook and your Kindle has not synced with Amazon for quite a while, Amazon's end decides that the book should not be on your Kindle and deletes it. One suggested fix is to set the ebook CDEType to PDOC.
DNSB is online now   Reply With Quote
Old 06-29-2024, 01:42 AM   #1193
zzjing
Junior Member
zzjing began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jun 2024
Device: Kindle PW3
Quote:
Originally Posted by kiwidude View Post
Thanks for that, I can apply that fix. However I admit I know zero about MOBI format (this feature was added by someone else to the plugin). From looking at the code the existing "Fix ASIN for Kindle Fire" code actually sets the EBOK value to the asin for the book. So I am confused as to what you would try to do by adding another "Fix" feature to this plugin - what else is it going to set the EBOK value to?

In other words - if I push a new version of the plugin that corrects the bug allowing you to identify MOBI files that have no EBOK header set, is there any reason why you would not just then use the existing "Fix ASIN" feature to then change the books?
In addition to fixing the ASIN, the existing "Fix ASIN" feature sets the cdetype to EBOK in the MOBI header. The problem is that sideloaded books marked as EBOK started to get deleted after the kindle device gets off Wifi for an extended period of time. This happened to me twice, and there is a long thread about it. So I'm trying to set the cdetype to something other than EBOK to prevent my sideloaded books from being deleted by amazon.

Fortunately the code is pretty straightforward and it's an easy hack. So now I can change it to whatever I want with a local copy of the plugin.
zzjing is offline   Reply With Quote
Old 07-07-2024, 12:54 AM   #1194
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quality Check v1.13.12 released

Release Notes
https://github.com/kiwidude68/calibr...check-v1.13.12

Check unused images in epub now includes checks for direct css references or the cover in opf.
kiwidude is offline   Reply With Quote
Old 07-07-2024, 06:12 AM   #1195
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,951
Karma: 138256890
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kiwidude View Post
Release Notes
https://github.com/kiwidude68/calibr...check-v1.13.12

Check unused images in epub now includes checks for direct css references or the cover in opf.
Can this fix to check CSS for image links be applied to Modify ePub? If an image is only in CSS, Modify ePub will treat it as an unused image and delete it.
JSWolf is offline   Reply With Quote
Old 07-08-2024, 03:59 AM   #1196
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by JSWolf View Post
Can this fix to check CSS for image links be applied to Modify ePub? If an image is only in CSS, Modify ePub will treat it as an unused image and delete it.
Sounds a good idea, will get it sorted.
kiwidude is offline   Reply With Quote
Old 08-04-2024, 12:12 AM   #1197
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quality Check v1.13.13 released

Release Notes
https://github.com/kiwidude68/calibr...check-v1.13.13

Handling another edge case of inline styles referencing an image. Thanks to Neyesha for reporting that.
kiwidude is offline   Reply With Quote
Old 08-05-2024, 07:06 AM   #1198
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quality Check v1.13.14 released

Release Notes
https://github.com/kiwidude68/calibr...check-v1.13.14

Someone requested an option to suppress the summary dialogs after Fix operations.
kiwidude is offline   Reply With Quote
Old 10-05-2024, 02:14 AM   #1199
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,351
Karma: 6874872
Join Date: Sep 2020
Device: Calibre E-book viewer
Hi, I'd like to request a (maybe) small enhancement.

On the Search ePubs feature, there's an option to show all occurrences. The log format is

Matches in book: Title / Author
Section ...search result snippet...

can it be...

"###"(number of) matches in book: Title / Author
Section ...search result snippet... ?

The plugin is very fast as it is, so perhaps this could be implemented as an option, if the counting takes too much time/ cpu resources?
Comfy.n is offline   Reply With Quote
Old 10-21-2024, 04:25 PM   #1200
Trester99
Member
Trester99 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jun 2024
Device: Kindle Paperwhite
Boolean Operators in "Search Epub"

I have been sorting thru a lot of ebooks and trying to separate them by quality, retail to a mess. Just started using Quality Check and have to say what a great plugin you have developed! A donation has been sent!

I have been able to get an "or" statement to work in the search epub function, but not a combined and/or statement. Is this option not available, or am I just missing the format?

these options work as stand-alone:
(test1|test2)
(test3|test4)

and I want to combine those two statements as follows:

(test1|test2) and (test3|test4)

Thanks for any enlightening you are able to provide!
Trester99 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Search the Internet kiwidude Plugins 434 09-30-2024 04:04 AM
[GUI Plugin] Clipboard Search kiwidude Plugins 29 04-02-2024 11:05 PM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 09:39 AM
[GUI Plugin] Kindle Collections (old) meme Plugins 2070 08-11-2014 01:02 AM
[GUI Plugin] Book Sync **Deprecated** kiwidude Plugins 111 06-07-2011 08:47 PM


All times are GMT -4. The time now is 10:18 PM.


MobileRead.com is a privately owned, operated and funded community.