Skip to content

Commit

Permalink
Correct getStarred2 song title key (use title instead of name)
Browse files Browse the repository at this point in the history
  • Loading branch information
usox committed Apr 30, 2023
1 parent 0987e05 commit 52bf7f1
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 41 deletions.
72 changes: 36 additions & 36 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/FeatureSet/V1161/Method/GetStarred2Method.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private function buildAlbumsList(Traversable $albums): Generator
*
* @return Generator<array{
* id: string,
* name: string,
* title: string,
* album: string,
* artist: string,
* coverArt: string,
Expand All @@ -126,7 +126,7 @@ private function buildSongList(Traversable $songs): Generator
foreach ($songs as $song) {
yield [
'id' => (string) $song['id'],
'name' => $song['name'],
'title' => $song['name'],
'album' => $song['albumName'],
'artist' => $song['artistName'],
'coverArt' => $song['coverArtId'],
Expand Down
2 changes: 1 addition & 1 deletion src/FeatureSet/V1161/Responder/GetStarred2Responder.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class GetStarred2Responder implements FormattedResponderInterface
/**
* @param Traversable<array{
* id: string,
* name: string,
* title: string,
* album: string,
* artist: string,
* coverArt: string,
Expand Down
2 changes: 1 addition & 1 deletion src/FeatureSet/V1161/Responder/ResponderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function createAlbumList2Responder(
/**
* @param Traversable<array{
* id: string,
* name: string,
* title: string,
* album: string,
* artist: string,
* coverArt: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public function createAlbumList2Responder(
/**
* @param Traversable<array{
* id: string,
* name: string,
* title: string,
* album: string,
* artist: string,
* coverArt: string,
Expand Down

0 comments on commit 52bf7f1

Please sign in to comment.