sya

split youtube audio tracks, with an optional pyqt gui
git clone git://src.gearsix.net/sya
Log | Files | Refs | Atom | README

commit 6c4c41d8b00b5b9901eedaf334cb0396f916f039
parent 836658c9f975ba7d3ab4230406f8c6cb34b3565e
Author: gearsix <gearsix@tuta.io>
Date:   Mon, 17 May 2021 13:55:03 +0100

added error_exit if args are missing/invalid]

Diffstat:
Msya.py | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/sya.py b/sya.py @@ -131,6 +131,8 @@ if __name__ == '__main__': sys.exit() if check_bin(args.youtubedl, args.ffmpeg) == False: error_exit('required binaries are missing') + if args.tracklist == None or args.output == None: + error_exit('tracklist and/or output paths are missing') tracklist = load_tracklist(args.tracklist) audio_fpath = get_audio(args.youtubedl, tracklist[0], args.format, args.quality, args.keep, args.ffmpeg)