mirror of
https://gitea.eponym.info/Mirrors/youtube-dl
synced 2025-08-31 10:05:13 +00:00
@@ -305,6 +305,7 @@ def sanitize_filename(s, restricted=False, is_id=False):
|
||||
result = result[2:]
|
||||
if result.startswith('-'):
|
||||
result = '_' + result[len('-'):]
|
||||
result = result.lstrip('.')
|
||||
if not result:
|
||||
result = '_'
|
||||
return result
|
||||
|
Reference in New Issue
Block a user