10-14-2020, 01:05 PM | #1021 |
Well trained by Cats
Posts: 29,817
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Calibre 5.2 and Quality check PI, Check Metadata is behaving odd.
When I ran Check Author Sort or Check Title Sort it NOW is very bursty (does a bunch, pauses, does more. overall, a lot slower) |
10-21-2020, 07:35 AM | #1022 |
Chalut o/
Posts: 410
Karma: 145324
Join Date: Dec 2017
Device: Kobo
|
I just had an idea for a new feature :
Check if the ePub contain a another ePub file. It may be extremely specific, but I've come across far too many books with this that I'm looking for a reliable way to hunt them down. Thanks |
Advert | |
|
10-21-2020, 07:37 AM | #1023 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What ePub has another ePub? I've never see this. can you point out some eBooks that have this?
|
10-21-2020, 08:35 AM | #1024 | |
Chalut o/
Posts: 410
Karma: 145324
Join Date: Dec 2017
Device: Kobo
|
Quote:
This kind of thing can make an ePub get really big. original ePub < 500 kb inner ePub > 4 MB And in fact... I managed to modify my Quality Check to include the feature. Code config.py Code:
('check_epub_inside_epub', {'name': 'Check ePub inside ePub', 'cat':'epub', 'sub_menu': 'Check ePub Structure', 'group': 3, 'excludable': True, 'image': 'images/check_book.png', 'tooltip':'Check for ePub formats containing a ePub inside'}), Code:
EPUB_FILES = ['.epub'] ALL_ARTIFACTS = ITUNES_FILES + BOOKMARKS_FILES + OS_FILES + EPUB_FILES ... def perform_check(self, menu_key): ... elif menu_key == 'check_epub_inside_epub': self.check_epub_inside_epub() ... ... def check_epub_inside_epub(self): def evaluate_book(book_id, db): path_to_book = db.format_abspath(book_id, 'EPUB', index_is_id=True) if not path_to_book: self.log.error('ERROR: EPUB format is missing: ', get_title_authors_text(db, book_id)) return False try: found = False displayed_path = False with ZipFile(path_to_book, 'r') as zf: for resource_name in self._manifest_worthy_names(zf): extension = resource_name[resource_name.rfind('.'):].lower() if extension in EPUB_FILES: if not displayed_path: displayed_path = True self.log('ePub found in: <b>%s</b>'%get_title_authors_text(db, book_id)) self.log('\t<span style="color:darkgray">%s</span>'%resource_name) found = True return found except InvalidEpub as e: self.log.error('Invalid epub:', e) return False except: self.log.error('ERROR parsing book: ', path_to_book) self.log(traceback.format_exc()) return False self.check_all_files(evaluate_book, no_match_msg='No searched ePub books have a ePub inside', marked_text='epub_inside_epub', status_msg_type='ePub books with a ePub inside') EDIT: I realize that FONT_FILES does not include '.woff' and '.woff2'. It's true that the formats are recent and not supported on all reader, but they have become very common and I wouldn't be surprised to see them appear in a ePub. Last edited by un_pogaz; 10-21-2020 at 08:47 AM. |
|
10-29-2020, 03:40 PM | #1025 |
Custom User Title
Posts: 8,650
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Small request: Could it be possible to use ellides (...) for lengthy titles in the progress dialog? I have a book with an extremely lengthy title and after QC processes it the dialog becomes wide enough to push the Cancel button off-screen.
|
Advert | |
|
10-29-2020, 04:20 PM | #1026 |
Addict
Posts: 254
Karma: 2092424
Join Date: Oct 2011
Location: Arlington, TX
Device: Kindle PW4, Moon+ Reader on a cheap Android tablet
|
|
10-29-2020, 05:13 PM | #1027 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But that's not an ePub within an ePub. An ePub within an ePub would be a ePub eBook inside the first ePub and that I've never seen or heard of before this thread. If that's not what's meant, then please explain what's meant and how to detect whatever it is.
|
10-29-2020, 05:34 PM | #1028 |
Custom User Title
Posts: 8,650
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Some sort of packaging error? I've never seen one myself.
|
10-29-2020, 08:25 PM | #1029 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Can you point to an example? I have never seen an epub within an epub like you seem to be describing. I don't know if it is allowed by the epub specs or is a packaging error as @ownedbycats. About the only thing I can think of is a zip file containing epubs that was added to calibre and it decided to treat it as an epub. Calibre does look at the contents of zip files when they are added to see if they should be treated as something else.
|
11-28-2020, 08:07 PM | #1030 |
Connoisseur
Posts: 51
Karma: 10
Join Date: Nov 2012
Device: none
|
I didn't see this in the list of features, but this plugin can do alot. So this is a question or feature request. Can QC check for epubs that would trigger the Nook cover bug?
https://nachtimwald.com/2011/08/21/n...ot-showing-up/ Nooks have an issue where the attributes have to be in a specific order. I know I can fix this with calibre by doing a polish epub, or embed metadata. But I'd rather not update every file if I don't have to. Thanks. |
11-29-2020, 06:57 AM | #1031 | |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
11-29-2020, 02:08 PM | #1032 |
Bibliophagist
Posts: 35,498
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I've seen exactly one. The epub creator manually created the .zip container since she "wanted complete control over the process". FlightCrew and EpubCheck went wild showing error messages after I sucked the file into Sigil.
|
11-30-2020, 01:35 AM | #1033 | |
Connoisseur
Posts: 51
Karma: 10
Join Date: Nov 2012
Device: none
|
Quote:
Code:
content="[^"]+"\s+name="cover" Last edited by Freakeao; 11-30-2020 at 01:44 AM. Reason: Updated regular expression |
|
12-06-2020, 02:49 PM | #1034 |
Guru
Posts: 724
Karma: 228142
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
Quality Check with Spanish translation
Hello people, I have taken the plight of translating the complement into Spanish and creating antecedents for other languages. I leave the file and some samples for future updates
Last edited by dunhill; 12-09-2020 at 04:33 PM. |
12-13-2020, 02:32 PM | #1035 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I can release this version but I am not interested in fixing problems or maintaining it. @dunhill: are you willing to maintain this plugin, at least to fix issues with translations? I don't mean incorrect translations. I do mean fixing problems that cause the plugin to no longer work.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Clipboard Search | kiwidude | Plugins | 29 | 04-02-2024 10:05 PM |
[GUI Plugin] Search the Internet | kiwidude | Plugins | 433 | 04-01-2024 05:48 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] Kindle Collections (old) | meme | Plugins | 2070 | 08-11-2014 12:02 AM |
[GUI Plugin] Book Sync **Deprecated** | kiwidude | Plugins | 111 | 06-07-2011 07:47 PM |