projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'MamayAlexander-YandexMusic'
[youtube-dl]
/
youtube_dl
/
utils.py
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index e511232caae2fd68fb13446df5da79cff9fff8a3..d5597d514dc502f73fb71ed8456017e4d1a2848b 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-319,7
+319,7
@@
def sanitize_path(s):
if unc_or_drive:
norm_path.pop(0)
sanitized_path = [
if unc_or_drive:
norm_path.pop(0)
sanitized_path = [
- re.sub('
[/<>:"\\|\\\\?\\*]
', '#', path_part)
+ re.sub('
(?:[/<>:"\\|\\\\?\\*]|\.$)
', '#', path_part)
for path_part in norm_path]
if unc_or_drive:
sanitized_path.insert(0, unc_or_drive + os.path.sep)
for path_part in norm_path]
if unc_or_drive:
sanitized_path.insert(0, unc_or_drive + os.path.sep)