mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 03:44:49 +00:00 
			
		
		
		
	Specify utf8 with SubtitleEdit when stripping hearing impaired
This commit is contained in:
		
							parent
							
								
									d94d6042b7
								
							
						
					
					
						commit
						7cc7227f8c
					
				@ -362,17 +362,13 @@ class Subtitle(Track):
 | 
			
		||||
                [
 | 
			
		||||
                    executable,
 | 
			
		||||
                    "/Convert", self.path, "srt",
 | 
			
		||||
                    "/encoding:utf8",
 | 
			
		||||
                    "/overwrite",
 | 
			
		||||
                    "/RemoveTextForHI"
 | 
			
		||||
                ],
 | 
			
		||||
                check=True,
 | 
			
		||||
                stdout=subprocess.DEVNULL
 | 
			
		||||
            )
 | 
			
		||||
            # Remove UTF-8 Byte Order Marks
 | 
			
		||||
            self.path.write_text(
 | 
			
		||||
                self.path.read_text(encoding="utf-8-sig"),
 | 
			
		||||
                encoding="utf8"
 | 
			
		||||
            )
 | 
			
		||||
        else:
 | 
			
		||||
            sub = Subtitles(self.path)
 | 
			
		||||
            sub.filter(
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user