From 0413d92cc8d0da3c1e3a40620cd9fcac5972eb3f Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Sun, 22 Mar 2026 14:55:13 -0300 Subject: [PATCH] Await asyncio.to_thread for episode metadata --- votify/interface/audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/votify/interface/audio.py b/votify/interface/audio.py index 55242f0..0d38fdc 100644 --- a/votify/interface/audio.py +++ b/votify/interface/audio.py @@ -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), )