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 = {}