mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-08-21 19:46:17 +03:00
Fix error when evaluating '.' outtmpl
This commit is contained in:
+1
-1
@@ -1476,7 +1476,7 @@ class YoutubeDL:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user