mirror of
https://github.com/rwinkhart/flac2pod.git
synced 2026-09-03 23:57:19 -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]:
|
for _file in source_directories[1]:
|
||||||
print(_file)
|
print(_file)
|
||||||
if not Path(f"{_file.replace(path.expanduser(source), path.expanduser(destination))}.mp3").is_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 "
|
system("ffmpeg -i '" + _file.replace("'", "\\'") +
|
||||||
f"'{_file.replace(path.expanduser(source), path.expanduser(destination))}.mp3'")
|
".flac' -c:v copy -ab 320k -map_metadata 0 -id3v2_version 3 '" +
|
||||||
|
_file.replace(path.expanduser(source), path.expanduser(destination)).replace("'", "\\'") + ".mp3'")
|
||||||
|
|
||||||
|
|
||||||
def rg2sc():
|
def rg2sc():
|
||||||
|
|||||||
Reference in New Issue
Block a user