Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/SpotifyWebAPI/API/SpotifyAPI+Playlists.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private extension SpotifyAPI {
).id

return self.apiRequest(
path: "/playlists/\(playlistId)/tracks",
path: "/playlists/\(playlistId)/items",
queryItems: queryItems,
httpMethod: httpMethod,
makeHeaders: Headers.bearerAuthorizationAndContentTypeJSON(_:),
Expand Down Expand Up @@ -77,7 +77,7 @@ private extension SpotifyAPI {
)?.commaSeparatedString()

return self.getRequest(
path: "/playlists/\(playlistId)/tracks",
path: "/playlists/\(playlistId)/items",
queryItems: [
"fields": filters,
"limit": limit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ extension Playlist: Codable {
private enum CodingKeys: String, CodingKey {
case name

case items = "tracks"
case items
case owner
case isPublic = "public"
case isCollaborative = "collaborative"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ extension PlaylistItemContainer: Codable {
case addedAt = "added_at"
case addedBy = "added_by"
case isLocal = "is_local"
case item = "track"
case item
}

public init(from decoder: Decoder) throws {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ extension URIsContainer: Codable {

private enum CodingKeys: String, CodingKey {
case snapshotId = "snapshot_id"
case items = "tracks"
case items
}

}
Expand Down
Loading