mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-28 01:18:30 +00:00
Fix error when evaluating '.' outtmpl
This commit is contained in:
parent
1139bd8b14
commit
e9aec455d2
@ -1476,7 +1476,7 @@ def trim_filename(name: str):
|
||||
else:
|
||||
return name[:max_file_name]
|
||||
|
||||
filename = os.path.join(*map(trim_filename, Path(filename).parts))
|
||||
filename = os.path.join(*map(trim_filename, Path(filename).parts) or '.')
|
||||
return filename + suffix
|
||||
|
||||
@_catch_unsafe_extension_error
|
||||
|
Loading…
Reference in New Issue
Block a user