| 
			
			 | 
		#1021 | 
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				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)  | 
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#1022 | 
| 
			
			
			
			 Chalut o/ 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 486 
				Karma: 678910 
				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  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#1023 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				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?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#1024 | |
| 
			
			
			
			 Chalut o/ 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 486 
				Karma: 678910 
				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 09:47 AM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#1025 | 
| 
			
			
			
			 Custom User Title 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,359 
				Karma: 79528341 
				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.  
		
	
		
		
			 
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#1026 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 266 
				Karma: 2121470 
				Join Date: Oct 2011 
				Location: Arlington, TX 
				
				
				Device: Kindle PW4, Moon+ Reader on a cheap Android tablet 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#1027 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				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.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#1028 | 
| 
			
			
			
			 Custom User Title 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,359 
				Karma: 79528341 
				Join Date: Oct 2018 
				Location: Canada 
				
				
				Device: Kobo Libra H2O, formerly Aura HD 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Some sort of packaging error? I've never seen one myself.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#1029 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905 
				Karma: 47303824 
				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.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#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.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#1031 | |
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  | 
|
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#1032 | 
| 
			
			
			
			 Bibliophagist 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48,175 
				Karma: 174315444 
				Join Date: Jul 2010 
				Location: Vancouver 
				
				
				Device: Kobo Sage, Libra Colour, 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.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#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 02:44 AM. Reason: Updated regular expression  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#1034 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 922 
				Karma: 810834 
				Join Date: Sep 2017 
				Location: Buenos Aires, 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 05:33 PM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#1035 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525 
				Karma: 8065948 
				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] Search the Internet | kiwidude | Plugins | 436 | 05-12-2025 10:02 PM | 
| [GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 06:42 AM | 
| [GUI Plugin] Clipboard Search | kiwidude | Plugins | 29 | 04-02-2024 11:05 PM | 
| [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 |