Skip to content

Commit a3317d1

Browse files
committed
Add options to Album track listing view.
1 parent 6072341 commit a3317d1

File tree

3 files changed

+73
-17
lines changed

3 files changed

+73
-17
lines changed

classes/MusicKit.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ public static function albumDetails(string $albumId, string $language = 'en-US')
339339
'name' => $a['name'] ?? '',
340340
'durationMs' => $ms,
341341
'duration' => Utils::format_mmss($ms),
342+
'url' => $a['url'] ?? null,
342343
];
343344
}, $tracksRaw);
344345

@@ -364,7 +365,7 @@ public static function albumDetails(string $albumId, string $language = 'en-US')
364365
'trackCount' => $a['trackCount'],
365366
'totalDuration' => $totalDuration,
366367
'tracks' => $tracks,
367-
'raw' => $body, // optional: full response payload
368+
//'raw' => $body, // optional: full response payload
368369
], 200);
369370
}
370371

0 commit comments

Comments
 (0)