From 7ac33228398a1383340baa21672691f05763c46d Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Sat, 23 May 2026 22:59:00 -0300 Subject: [PATCH] Handle missing webplayback in song stream info --- gamdl/interface/song.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gamdl/interface/song.py b/gamdl/interface/song.py index 586e4a6..01a7da7 100644 --- a/gamdl/interface/song.py +++ b/gamdl/interface/song.py @@ -423,11 +423,15 @@ class AppleMusicSongInterface: async def _get_web_stream_info( self, - webplayback: dict, + webplayback: dict | None, codec: SongCodec, ) -> StreamInfoAv: log = logger.bind(action="get_web_song_stream_info") + if not webplayback: + log.debug("no_webplayback") + return None + flavor = codec.flavor stream_info = StreamInfo(