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(