mirror of
https://github.com/rwinkhart/flac2pod.git
synced 2026-08-30 22:06:29 -04:00
Fix percentage counter not being multiplied properly
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ def scan_destination_convert_mp3():
|
||||
_i, _i_total, _total_files = 0, 0, len(source_directories[1])
|
||||
for _file in source_directories[1]:
|
||||
_i_total += 1
|
||||
_progress = _i_total / _total_files
|
||||
_progress = (_i_total / _total_files) * 100
|
||||
if not Path(f"{_file.replace(path.expanduser(source), path.expanduser(destination))}.mp3").is_file():
|
||||
_file_s = _file.replace(' ', '\\ ').replace("'", "\\'").replace(')', '\\)').replace('(', '\\(').replace\
|
||||
('&', '\\&').replace('`', '\\`').replace('$', '\\$') + '.flac'
|
||||
|
||||
Reference in New Issue
Block a user