Skip to content

Commit

Permalink
feat: don't log out error when fetching playlist in apple music
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Gleich <[email protected]>
  • Loading branch information
gleich committed Dec 6, 2024
1 parent c1a0397 commit 47f195c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/apis/applemusic/playlists.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package applemusic

import (
"errors"
"fmt"
"time"

"github.com/gleich/lcp-v2/internal/apis"
"github.com/gleich/lumber/v3"
)

Expand Down Expand Up @@ -45,9 +43,6 @@ func fetchPlaylist(id string) (playlist, error) {
fmt.Sprintf("/v1/me/library/playlists/%s/tracks", id),
)
if err != nil {
if !errors.Is(err, apis.WarningError) {
lumber.Error(err, "failed to get tracks for playlist with id of", id)
}
return playlist{}, err
}
totalResponseData = append(totalResponseData, trackData.Data...)
Expand Down

0 comments on commit 47f195c

Please sign in to comment.