ruddarr / app

A native iOS companion app for Radarr and Sonarr instances.
https://apps.apple.com/app/ruddarr/id6476240130
MIT License
117 stars 6 forks source link

Activity: Cancel queue task #349

Closed tillkruss closed 1 month ago

tillkruss commented 1 month ago

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 commented 1 month ago
ruddar 2 ruddarr ruddar