mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[cleanup] Misc cleanup and refactor (#2173)
This commit is contained in:
		| @@ -1,4 +1,5 @@ | ||||
| import asyncio | ||||
| import contextlib | ||||
| import os | ||||
| import signal | ||||
| import threading | ||||
| @@ -29,11 +30,9 @@ class FFmpegSinkFD(FileDownloader): | ||||
|             except (BrokenPipeError, OSError): | ||||
|                 pass | ||||
|             finally: | ||||
|                 try: | ||||
|                 with contextlib.suppress(OSError): | ||||
|                     stdin.flush() | ||||
|                     stdin.close() | ||||
|                 except OSError: | ||||
|                     pass | ||||
|                 os.kill(os.getpid(), signal.SIGINT) | ||||
| 
 | ||||
|         class FFmpegStdinFD(FFmpegFD): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan