From 813ec6228d6cf3f26c2fa7a688e05007f529cdd2 Mon Sep 17 00:00:00 2001 From: logykk Date: Tue, 2 Nov 2021 20:55:13 +1300 Subject: [PATCH] Track download fix part 1 --- zspotify/track.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/zspotify/track.py b/zspotify/track.py index 0fe2d3bc..2cab1c16 100644 --- a/zspotify/track.py +++ b/zspotify/track.py @@ -134,8 +134,6 @@ def download_track(track_id: str, extra_paths='', prefix=False, prefix_value='', ) as p_bar: for chunk in range(int(total_size / ZSpotify.get_config(CHUNK_SIZE)) + 1): data = stream.input_stream.stream().read(ZSpotify.get_config(CHUNK_SIZE)) - if data == b'': - break p_bar.update(file.write(data)) if ZSpotify.get_config(DOWNLOAD_REAL_TIME): if chunk == 0: