mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 03:44:49 +00:00 
			
		
		
		
	Give some documentation on Track events
This commit is contained in:
		
							parent
							
								
									8bf6e4d87e
								
							
						
					
					
						commit
						7be24a130d
					
				@ -51,11 +51,17 @@ class Track:
 | 
			
		||||
        self.edition: str = edition
 | 
			
		||||
        self.extra: Any = extra or {}  # allow anything for extra, but default to a dict
 | 
			
		||||
 | 
			
		||||
        # events
 | 
			
		||||
        # TODO: Currently using OnFoo event naming, change to just segment_filter
 | 
			
		||||
        self.OnSegmentFilter: Optional[Callable] = None
 | 
			
		||||
 | 
			
		||||
        # TODO: This should realistically be before decryption
 | 
			
		||||
        # Called after the Track has been fully downloaded and decrypted
 | 
			
		||||
        self.OnDownloaded: Optional[Callable] = None
 | 
			
		||||
        # Called after the Track or a Segment has been decrypted
 | 
			
		||||
        self.OnDecrypted: Optional[Callable] = None
 | 
			
		||||
        # Called after the Track has been repackaged
 | 
			
		||||
        self.OnRepacked: Optional[Callable] = None
 | 
			
		||||
        # Called before the Track is multiplexed
 | 
			
		||||
        self.OnMultiplex: Optional[Callable] = None
 | 
			
		||||
 | 
			
		||||
        # should only be set internally
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user