From 84dce7d67ea59363fb7639543b5df56ea38a5f99 Mon Sep 17 00:00:00 2001 From: yiannisha Date: Sun, 31 Oct 2021 21:00:14 +0200 Subject: [PATCH] Removed some debug messages --- zspotify/track.py | 4 ++-- zspotify/utils.py | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) 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: