Handle missing webplayback in song stream info

This commit is contained in:
Rafael Moraes
2026-05-23 22:59:00 -03:00
parent 740cad2ee0
commit 7ac3322839
+5 -1
View File
@@ -423,11 +423,15 @@ class AppleMusicSongInterface:
async def _get_web_stream_info( async def _get_web_stream_info(
self, self,
webplayback: dict, webplayback: dict | None,
codec: SongCodec, codec: SongCodec,
) -> StreamInfoAv: ) -> StreamInfoAv:
log = logger.bind(action="get_web_song_stream_info") log = logger.bind(action="get_web_song_stream_info")
if not webplayback:
log.debug("no_webplayback")
return None
flavor = codec.flavor flavor = codec.flavor
stream_info = StreamInfo( stream_info = StreamInfo(