mirror of
https://github.com/rwinkhart/flac2pod.git
synced 2026-09-05 16:47:15 -04:00
Added return codes
This commit is contained in:
+2
-2
@@ -102,7 +102,7 @@ def scan_destination_convert():
|
|||||||
else:
|
else:
|
||||||
print(f"\u001b[38;5;0;48;5;88mNo ReplayGain data found!\u001b[0m")
|
print(f"\u001b[38;5;0;48;5;88mNo ReplayGain data found!\u001b[0m")
|
||||||
if args.stopifnogain:
|
if args.stopifnogain:
|
||||||
s_exit()
|
s_exit(1)
|
||||||
Popen(_cmd, shell=True)
|
Popen(_cmd, shell=True)
|
||||||
_active_processes = int(check_output('ps -C ffmpeg | wc -l', shell=True)) - 1
|
_active_processes = int(check_output('ps -C ffmpeg | wc -l', shell=True)) - 1
|
||||||
while _active_processes != 0:
|
while _active_processes != 0:
|
||||||
@@ -111,7 +111,7 @@ def scan_destination_convert():
|
|||||||
_active_processes = int(check_output('ps -C ffmpeg | wc -l', shell=True)) - 1
|
_active_processes = int(check_output('ps -C ffmpeg | wc -l', shell=True)) - 1
|
||||||
sleep(1)
|
sleep(1)
|
||||||
print('\niPod conversion complete!\n')
|
print('\niPod conversion complete!\n')
|
||||||
s_exit()
|
s_exit(0)
|
||||||
|
|
||||||
|
|
||||||
# argument parsing
|
# argument parsing
|
||||||
|
|||||||
Reference in New Issue
Block a user