commit be83735aba7e9f1d245ca43fb0cab3a78d95c5da
parent 940a5637a2fc5a9fdbf2fd8687d4d0dd2e1c178e
Author: gearsix <gearsix@tuta.io>
Date: Sat, 18 Mar 2023 15:13:00 +0000
sya: trim path seperator from the end of output
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/sya.py b/src/sya.py
@@ -165,6 +165,8 @@ def sya(args):
if check_bin(args.youtubedl, args.ffmpeg) == False:
error_exit('required binaries are missing')
+ if args.output != None and len(args.output) > 0 and args.output[len(args.output)-1] == os.sep:
+ args.output = args.output[:-1]
for t in args.tracklist:
if args.tracklist == None or os.path.exists(t) == False: