app icon indicating copy to clipboard operation
app copied to clipboard

Activity: Cancel queue task

Open tillkruss opened this issue 4 months ago • 1 comments

Cancel queue tasks in form of a button within the sheet.

Needs a UI to pick the various options, see screenshots below.

https://radarr.video/docs/api/#/Queue/delete_api_v3_queue__id_

              , deleteQueueTasks: { tasks, instance in
            let url = URL(string: instance.url)!
                .appending(path: "/api/v3/queue/bulk")
                .appending(queryItems: [
                    .init(name: "removeFromClient", value: "true"),
                    .init(name: "blocklist", value: "true"),
                    .init(name: "skipRedownload", value: "true"),
                    .init(name: "changeCategory", value: "100"),
                ])

            // let body = SeriesEditorResource(ids: tasks)

            return try await request(method: .delete, url: url, headers: instance.auth)
        }

tillkruss avatar Oct 07 '24 23:10 tillkruss