mirror of
https://github.com/rwinkhart/flac2pod.git
synced 2026-08-28 04:46:37 -04:00
Fixed transcoding of songs with special characters
This commit is contained in:
+3
-2
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user