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(
|
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(
|
||||||
|
|||||||
Reference in New Issue
Block a user