mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-04 03:27:00 -05:00 
			
		
		
		
	Fixes for manual generation failures
This commit is contained in:
		
							parent
							
								
									47218173c0
								
							
						
					
					
						commit
						cc368c05ca
					
				@ -211,8 +211,8 @@ class Source(Plugin):
 | 
				
			|||||||
    #: Set this to True if your plugin returns HTML formatted comments
 | 
					    #: Set this to True if your plugin returns HTML formatted comments
 | 
				
			||||||
    has_html_comments = False
 | 
					    has_html_comments = False
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #: Setting this to True means that the browser object will add
 | 
					    #: Setting this to True means that the browser object will indicate
 | 
				
			||||||
    #: Accept-Encoding: gzip to all requests. This can speedup downloads
 | 
					    #: that it supports gzip transfer encoding. This can speedup downloads
 | 
				
			||||||
    #: but make sure that the source actually supports gzip transfer encoding
 | 
					    #: but make sure that the source actually supports gzip transfer encoding
 | 
				
			||||||
    #: correctly first
 | 
					    #: correctly first
 | 
				
			||||||
    supports_gzip_transfer_encoding = False
 | 
					    supports_gzip_transfer_encoding = False
 | 
				
			||||||
 | 
				
			|||||||
@ -156,7 +156,10 @@ class OptionSet(object):
 | 
				
			|||||||
            if opt.help:
 | 
					            if opt.help:
 | 
				
			||||||
                opt.help = t(opt.help)
 | 
					                opt.help = t(opt.help)
 | 
				
			||||||
                if opt.name == 'use_primary_find_in_search':
 | 
					                if opt.name == 'use_primary_find_in_search':
 | 
				
			||||||
                    opt.help = opt.help.format(u'ñ')
 | 
					                    h = opt.help
 | 
				
			||||||
 | 
					                    if isinstance(h, bytes):
 | 
				
			||||||
 | 
					                        h = h.decode('utf-8', 'replace')
 | 
				
			||||||
 | 
					                    opt.help = h.format(u'ñ')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def option_parser(self, user_defaults=None, usage='', gui_mode=False):
 | 
					    def option_parser(self, user_defaults=None, usage='', gui_mode=False):
 | 
				
			||||||
        from calibre.utils.config import OptionParser
 | 
					        from calibre.utils.config import OptionParser
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user