implements editing items in favorites

This commit is contained in:
2025-06-20 18:50:06 -07:00
parent d87d6e038e
commit 6e5e587998
7 changed files with 127 additions and 6 deletions

View File

@@ -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)")