From 6fefede271fcf42c2299883e303f5f58bd0481f9 Mon Sep 17 00:00:00 2001 From: Migatu Date: Mon, 22 Apr 2024 01:04:46 +0200 Subject: [PATCH] Potential bugfix for some lazycoding in spotipy... Another one. fuck it --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 2548624..f0bdd5a 100644 --- a/bot.py +++ b/bot.py @@ -1074,9 +1074,9 @@ async def get_file(ctx, source, link): dir_path = None item_type, item_id = spotify.parse_spotify_url(link) if item_id: - coro = asyncio.to_thread(spotify.fetch_tracks, args=(spotify_ctrl, item_type, link)) + coro = asyncio.to_thread(spotify.fetch_tracks, spotify_ctrl, item_type, link) file_list = await coro - coro = asyncio.to_thread(spotify.get_item_name, args=(spotify_ctrl, item_type, item_id)) + coro = asyncio.to_thread(spotify.get_item_name, spotify_ctrl, item_type, item_id) directory_name = await coro url_data = {"urls": []} url_dict = {}