diff --git a/zspotify/track.py b/zspotify/track.py index d36c30dd..0fe2d3bc 100644 --- a/zspotify/track.py +++ b/zspotify/track.py @@ -63,8 +63,8 @@ def get_song_duration(song_id: str) -> float: duration = float(ms_duration)/1000 # debug - print(duration) - print(type(duration)) + # print(duration) + # print(type(duration)) return duration diff --git a/zspotify/utils.py b/zspotify/utils.py index 05668ca9..038ae68d 100644 --- a/zspotify/utils.py +++ b/zspotify/utils.py @@ -55,12 +55,9 @@ def get_downloaded_song_duration(filename: str) -> float: command = ['ffprobe', '-show_entries', 'format=duration', '-i', f'{filename}'] output = subprocess.run(command, capture_output=True) - print(output.stdout) - duration = re.search(r'[\D]=([\d\.]*)', str(output.stdout)).groups()[0] duration = float(duration) - print(duration) return duration def wait(seconds: int = 3) -> None: