mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-04 03:27:00 -05:00 
			
		
		
		
	Ignore non integral play orders when reading NCX TOC files
This commit is contained in:
		
							parent
							
								
									46736118bb
								
							
						
					
					
						commit
						15c842a047
					
				@ -331,7 +331,10 @@ class OEBReader(object):
 | 
				
			|||||||
            id = child.get('id')
 | 
					            id = child.get('id')
 | 
				
			||||||
            klass = child.get('class', 'chapter')
 | 
					            klass = child.get('class', 'chapter')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            try:
 | 
				
			||||||
                po = int(child.get('playOrder', self.oeb.toc.next_play_order()))
 | 
					                po = int(child.get('playOrder', self.oeb.toc.next_play_order()))
 | 
				
			||||||
 | 
					            except:
 | 
				
			||||||
 | 
					                po = self.oeb.toc.next_play_order()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            authorElement = xpath(child,
 | 
					            authorElement = xpath(child,
 | 
				
			||||||
                    'descendant::calibre:meta[@name = "author"]')
 | 
					                    'descendant::calibre:meta[@name = "author"]')
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user