read_media tvdb details: requested flag false for an approved/requested series #7
Notifications
Due Date
No due date set.
Depends on
Reference: gronod/ombi-mcp#7
Reference in New Issue
Block a user
Summary
read_mediadetailsfor tv viaprovider: tvdbreportsrequested: falsefor the media and every season even when the series has an approved request on the instance.Environment
develop@d047d76Reproduction
Seven Up! (tvdb
259032) was requested and approved on 2026-09-19 — visible viaread_requests recentand in the retry queue.Expected
requested: trueon the media (and requested seasons), matchingread_requestsstate.Actual
requested: falseon the media and all 10 seasons.by_requestfor Button Moon (parent 759) correctly shows requested state — so the discrepancy is specific to the tvdb details route.Notes
The tvdb path now uses
/api/v1/Search/tv/info/{id}(TVMaze-backed). That route may not carry request state for items the local instance has already requested — possibly needs a follow-up availability/request lookup. Alternatively upstream just omits the flag for this series. Needs verification before classifying as projection vs upstream.Correlation ID
05cc8a8fd09fb596bf5acd1dRetested on binary
6ebcb2f(M5 applied) — not fixed. The overlay either never runs or never matches on this instance.Live evidence — all three series have approved parent requests, yet tvdb details still report
requested:falsewith norequest_targetsand no warnings:No
request state scan incompletewarning was emitted on any call, so either:jint(m, "requestId") != nil— i.e. the v1 TVMaze info response already carries arequestIdfield (possibly 0/absent-value), defeating therequestId == nilguard inmediaDetails; oreachTVRequestParentscansGET /api/v1/Request/tv/{count}/{pos}/1/0/0without error but no parent record matches — plausibly because parent records name the fieldtheTvDbIdrather thantvDbId(mergeTVRequestStateonly checkstvDbId/imdbId, whileprojectRequestreads bothtvDbIdandtheTvDbId).Related: the same bounded scan backs the
read_requests search tvfallback (see #10 comment) and that path demonstrably fails on this instance — worth verifying the scan endpoint actually returns data here.