mirror of
https://github.com/glomatico/votify.git
synced 2026-10-02 14:02:23 +02:00
Await asyncio.to_thread for episode metadata
This commit is contained in:
@@ -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),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user