mirror of
https://github.com/rembo10/headphones.git
synced 2026-03-25 14:19:27 +00:00
Rename file fails if starts with '.'
Fixes https://github.com/rembo10/headphones/issues/1317
This commit is contained in:
@@ -945,7 +945,7 @@ def renameFiles(albumpath, downloaded_track_list, release):
|
||||
new_file_name = new_file_name.replace(' ', '_')
|
||||
|
||||
if new_file_name.startswith('.'):
|
||||
new_file_name = new_file_name.replace(0, '_')
|
||||
new_file_name = new_file_name.replace(".", "_", 1)
|
||||
|
||||
new_file = os.path.join(albumpath, new_file_name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user