diff --git a/bin/flac2pod b/bin/flac2pod index e83fae1..59995d9 100755 --- a/bin/flac2pod +++ b/bin/flac2pod @@ -45,8 +45,7 @@ def scan_destination_convert(): for _file in source_directories[1]: _i_total += 1 _progress = round((_i_total / _total_files) * 100, 2) - if not Path(f"{_file.replace(path.expanduser(source), path.expanduser(destination))}.mp3").is_file() and not \ - Path(f"{_file.replace(path.expanduser(source), path.expanduser(destination))}.m4a").is_file(): + if not Path(f"{(_file.replace(path.expanduser(source), path.expanduser(destination)))[:-5]}.m4a").is_file(): _file_s = _file.replace(' ', '\\ ').replace("'", "\\'").replace(')', '\\)').replace('(', '\\(')\ .replace(']', '\\]').replace('[', '\\[').replace('&', '\\&').replace('`', '\\`')\ .replace('$', '\\$')