mirror of https://github.com/afkcodes/zspotify.git
Removed some debug messages
This commit is contained in:
parent
97f8321877
commit
84dce7d67e
|
@ -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
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue