Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.

Commit a3473a5

Browse files
dhpupclaude
andcommitted
fix: support discordIds array format for Seerr 3.3 compatibility
Seerr v3.3.0 renamed the discordId (string) field to discordIds (array) in user settings. This caused all Discord user lookups to fail with "unauthorized" since the mapping always came back empty. - Read discordIds (array) first, fall back to discordId (string) for older Overseerr/Jellyseerr installs - Support multiple Discord IDs per user in the discord-users mapping Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 088642d commit a3473a5

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

src/doplarr/backends/overseerr/impl.clj

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,21 @@
100100
(into [])))
101101
(else #(fatal % "Exception on querying Overseerr users")))))
102102

103-
(defn discord-id [ovsr-id]
103+
(defn discord-ids [ovsr-id]
104104
(a/go
105105
(->> (a/<! (GET (str "/user/" ovsr-id)))
106-
(then #(->> (utils/from-camel %)
107-
(s/select-one [:body :settings :discord-id])))
108-
(else #(fatal % "Exception on querying Overseerr discord id")))))
106+
(then (fn [result]
107+
(let [settings (s/select-one [:body :settings] (utils/from-camel result))]
108+
(or (seq (:discord-ids settings))
109+
(when-let [id (:discord-id settings)] [id])
110+
[]))))
111+
(else #(fatal % "Exception on querying Overseerr discord ids")))))
109112

110113
(defn discord-users []
111114
(a/go-loop [ids (a/<! (all-users))
112115
users {}]
113116
(if (empty? ids)
114117
users
115-
(let [id (first ids)]
116-
(recur (rest ids) (assoc users (a/<! (discord-id id)) id))))))
118+
(let [id (first ids)
119+
disc-ids (a/<! (discord-ids id))]
120+
(recur (rest ids) (merge users (into {} (map #(vector % id) disc-ids))))))))

0 commit comments

Comments
 (0)