mirror of
https://github.com/glomatico/gamdl.git
synced 2026-06-13 04:05:14 +03:00
Handle missing webplayback in song stream info
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user