mirror of
https://github.com/glomatico/gamdl.git
synced 2026-06-13 04:05:14 +03:00
Guard playParams access to avoid KeyError
This commit is contained in:
@@ -506,7 +506,7 @@ class AppleMusicSongInterface:
|
|||||||
)
|
)
|
||||||
)["data"][0]
|
)["data"][0]
|
||||||
|
|
||||||
if media.media_metadata["attributes"]["playParams"].get("isLibrary"):
|
if media.media_metadata["attributes"].get("playParams", {}).get("isLibrary"):
|
||||||
catalog_metadata = self.base.get_catalog_metadata_from_library(
|
catalog_metadata = self.base.get_catalog_metadata_from_library(
|
||||||
media.media_metadata
|
media.media_metadata
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user