From fa58cd58939640188056c6e884b8e39a66176077 Mon Sep 17 00:00:00 2001 From: Jonas_Jones Date: Wed, 13 Sep 2023 00:44:57 +0200 Subject: [PATCH] fixed progress bar overflow --- likedsongsync2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/likedsongsync2.py b/likedsongsync2.py index 792df0e..4f31813 100644 --- a/likedsongsync2.py +++ b/likedsongsync2.py @@ -16,6 +16,7 @@ SPOTIPY_REDIRECT_URI = "" LIKEDSONGPLAYLIST_ID = "" def progress_bar(current, total, last_time_stamp=time.time()): + current = total if current > total else current this_timestamp = time.time() width = os.get_terminal_size().columns progress = round((current/total)*width)