sya

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

commit 5124a08db68bf2aa745ba3fe1d8d7eba4d92b418
parent 1563563c31b376e9877c82a963ffbccc6caacded
Author: gearsix <gearsix@ot-mac-fvfhd01kq05r.home>
Date:   Mon,  4 Jul 2022 15:37:56 +0100

bugfix in finding track length

Diffstat:
Msya.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sya.py b/sya.py @@ -110,7 +110,7 @@ def split_tracks(ffmpeg, audio_fpath, tracks, format='mp3', outpath='out'): # some nasty string manip. to extract length (printed to stderr) try: length = str(ret).split('\\r') - length = length[len(length)-2].split(' ')[1].split('=')[1][:-3] + length = length[len(length)-1].split(' ')[1].split('=')[1][:-3] except: log('Failed to find track length, {}'.format(length)) return