Await asyncio.to_thread for episode metadata

This commit is contained in:
Rafael Moraes
2026-03-22 14:55:13 -03:00
parent e4a4648562
commit 0413d92cc8
+1 -1
View File
@@ -137,7 +137,7 @@ class SpotifyAudioInterface(SpotifyBaseInterface):
media_id_wrapper(media_id, media_type),
)
elif media_type == "episode":
metadata = asyncio.to_thread(
metadata = await asyncio.to_thread(
self.api.librespot.session.api().get_metadata_4_episode,
media_id_wrapper(media_id, media_type),
)