mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	oops
This commit is contained in:
		
							parent
							
								
									bae03def12
								
							
						
					
					
						commit
						f0567e81ae
					
				@ -1215,10 +1215,10 @@ def try_opf(path, options):
 | 
				
			|||||||
                        match.lower().endswith('.gif') or match.lower().endswith('.png'):
 | 
					                        match.lower().endswith('.gif') or match.lower().endswith('.png'):
 | 
				
			||||||
                            options.cover = match
 | 
					                            options.cover = match
 | 
				
			||||||
        if not options.cover:
 | 
					        if not options.cover:
 | 
				
			||||||
            ref = soup.package.find('reference', {'type':'other.ms-coverimage-standard'})
 | 
					            ref = soup.package.find('reference', {'type':'other.ms-coverimage-standard'})            
 | 
				
			||||||
            if ref:
 | 
					            if ref:
 | 
				
			||||||
                try:
 | 
					                try:
 | 
				
			||||||
                    options.cover = ref.get('href')
 | 
					                    options.cover = os.path.join(os.path.dirname(path), ref.get('href'))
 | 
				
			||||||
                    if not os.access(options.cover, os.R_OK):
 | 
					                    if not os.access(options.cover, os.R_OK):
 | 
				
			||||||
                        options.cover = None
 | 
					                        options.cover = None
 | 
				
			||||||
                except:
 | 
					                except:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user