Potential bugfix for some lazycoding in spotipy...

Another one. fuck it
This commit is contained in:
2024-04-22 01:04:46 +02:00
parent c1054241eb
commit 6fefede271
+2 -2
View File
@@ -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 = {}