From f8ec2367afbb85bc1fe8fd32f6ea30599b5bdaf8 Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Sat, 23 May 2026 14:18:16 -0300 Subject: [PATCH] Add include param to library endpoints --- gamdl/api/apple_music.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gamdl/api/apple_music.py b/gamdl/api/apple_music.py index 98e2631..24233dd 100644 --- a/gamdl/api/apple_music.py +++ b/gamdl/api/apple_music.py @@ -478,6 +478,7 @@ class AppleMusicApi: self, limit: int = 100, offset: int = 0, + include: str = "catalog", extend: str = "extendedAssetUrls", ) -> dict: log = logger.bind(action="get_library_songs") @@ -487,6 +488,7 @@ class AppleMusicApi: { "limit": limit, "offset": offset, + "include": include, "extend": extend, }, ) @@ -499,6 +501,7 @@ class AppleMusicApi: self, limit: int = 100, offset: int = 0, + include: str = "catalog", ) -> dict: log = logger.bind(action="get_library_music_videos") @@ -507,6 +510,7 @@ class AppleMusicApi: { "limit": limit, "offset": offset, + "include": include, }, ) @@ -518,6 +522,7 @@ class AppleMusicApi: self, limit: int = 100, offset: int = 0, + include: str = "catalog", ) -> dict: log = logger.bind(action="get_library_albums") @@ -526,6 +531,7 @@ class AppleMusicApi: { "limit": limit, "offset": offset, + "include": include, }, ) @@ -537,6 +543,7 @@ class AppleMusicApi: self, limit: int = 100, offset: int = 0, + include: str = "catalog", ) -> dict: log = logger.bind(action="get_library_playlists") @@ -545,6 +552,7 @@ class AppleMusicApi: { "limit": limit, "offset": offset, + "include": include, }, )