mirror of
https://github.com/rwinkhart/flac2pod.git
synced 2026-08-30 22:06:29 -04:00
Basic compatibility with new commits to rg2sc
This commit is contained in:
Regular → Executable
+2
-2
@@ -58,10 +58,10 @@ def scan_destination_convert_mp3():
|
||||
print(f"\n{_progress}% | \u001b[38;5;0;48;5;15mConverting {_file_s} to {_file_d}...\u001b[0m\n")
|
||||
if '-s' in arguments:
|
||||
_cmd = f"screen -DmS flac2pod{_i} ffmpeg -i {_file_s} -map 0:a -ab 320k -map_metadata 0" \
|
||||
f" -id3v2_version 3 {_file_d} </dev/null; rg2sc -f -s {_file_d}"
|
||||
f" -id3v2_version 3 {_file_d} </dev/null; rg2sc -f -s --mp3 {_file_d}"
|
||||
else:
|
||||
_cmd = f"screen -DmS flac2pod{_i} ffmpeg -i {_file_s} -c:v copy -ab 320k -map_metadata 0" \
|
||||
f" -id3v2_version 3 {_file_d} </dev/null; rg2sc -f {_file_d}"
|
||||
f" -id3v2_version 3 {_file_d} </dev/null; rg2sc -f --mp3 {_file_d}"
|
||||
Popen(_cmd, shell=True)
|
||||
_active_processes = int(check_output('ps -C ffmpeg | wc -l', shell=True)) - 1
|
||||
while _active_processes != 0:
|
||||
|
||||
Reference in New Issue
Block a user