mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[utils] Prevent hyphen at beginning of filename (Fixes #5035)
This commit is contained in:
		| @@ -85,6 +85,8 @@ class TestUtil(unittest.TestCase): | ||||
|         self.assertEqual( | ||||
|             sanitize_filename('New World record at 0:12:34'), | ||||
|             'New World record at 0_12_34') | ||||
|         self.assertEqual(sanitize_filename('--gasdgf'), '_-gasdgf') | ||||
|         self.assertEqual(sanitize_filename('--gasdgf', is_id=True), '--gasdgf') | ||||
|  | ||||
|         forbidden = '"\0\\/' | ||||
|         for fc in forbidden: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister