mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 11:54:50 +00:00 
			
		
		
		
	Fix OGM Chapter Regex patterns in Chapters class
This commit is contained in:
		
							parent
							
								
									66edf577f9
								
							
						
					
					
						commit
						92e00ed667
					
				@ -10,8 +10,8 @@ from sortedcontainers import SortedKeyList
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
from devine.core.tracks import Chapter
 | 
					from devine.core.tracks import Chapter
 | 
				
			||||||
 | 
					
 | 
				
			||||||
OGM_SIMPLE_LINE_1_FORMAT = re.compile(r"^CHAPTER(?P<number>\d+)=(?P<timestamp>[\d\\.]+)$")
 | 
					OGM_SIMPLE_LINE_1_FORMAT = re.compile(r"^CHAPTER(?P<number>\d+)=(?P<timestamp>\d{2,}:\d{2}:\d{2}\.\d{3})$")
 | 
				
			||||||
OGM_SIMPLE_LINE_2_FORMAT = re.compile(r"^CHAPTER(?P<number>\d+)NAME=(?P<name>[\d\\.]+)$")
 | 
					OGM_SIMPLE_LINE_2_FORMAT = re.compile(r"^CHAPTER(?P<number>\d+)NAME=(?P<name>.*)$")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Chapters(SortedKeyList, ABC):
 | 
					class Chapters(SortedKeyList, ABC):
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user