Fixed transcoding of songs with special characters

This commit is contained in:
2022-03-16 20:38:59 -04:00
parent 9f9d69b1a3
commit 94fa7570ec
+3 -2
View File
@@ -39,8 +39,9 @@ def scan_destination_convert_mp3():
for _file in source_directories[1]:
print(_file)
if not Path(f"{_file.replace(path.expanduser(source), path.expanduser(destination))}.mp3").is_file():
system(f"ffmpeg -i '{_file}.flac' -c:v copy -ab 320k -map_metadata 0 -id3v2_version 3 "
f"'{_file.replace(path.expanduser(source), path.expanduser(destination))}.mp3'")
system("ffmpeg -i '" + _file.replace("'", "\\'") +
".flac' -c:v copy -ab 320k -map_metadata 0 -id3v2_version 3 '" +
_file.replace(path.expanduser(source), path.expanduser(destination)).replace("'", "\\'") + ".mp3'")
def rg2sc():