implements editing items in favorites
This commit is contained in:
@@ -139,6 +139,14 @@ struct API
|
||||
.execute()
|
||||
}
|
||||
|
||||
public func renameFavorite(mediaURL: String, title: String) async throws {
|
||||
try await request()
|
||||
.pathString("/favorites/\(mediaURL.uriEncoded())/title")
|
||||
.body([ "title": title ])
|
||||
.method(.put)
|
||||
.execute()
|
||||
}
|
||||
|
||||
public func delete(index: Int) async throws {
|
||||
try await request()
|
||||
.path("/playlist/\(index)")
|
||||
|
||||
Reference in New Issue
Block a user