aboutsummaryrefslogtreecommitdiffstats
path: root/deckit/modules/xbox.py
AgeCommit message (Collapse)AuthorFilesLines
3 daysfeat(xbox): mark captures saved on the PC, icon save buttonDanilo M.1-8/+20
A capture whose file is already in Pictures/Xbox or Videos/Xbox carries `saved` and gets a check on its tile. The viewer keeps one icon button, save to PC; the download to the tablet is gone. Deleting from Xbox Live was tried and dropped: mediahub's DELETE answers 403 (errorCode 10401) to a token from our own Azure app. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 daysfeat(xbox): save a capture to the PCDanilo M.1-0/+35
The viewer's "Save to PC" asks the server to download the capture into Pictures/Xbox (screenshots) or Videos/Xbox (clips), named by title and capture date; the old link stays as "Tablet". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 daysfeat(xbox): list, view and download uploaded capturesDanilo M.1-0/+21
The slow read also searches mediahub for the user's screenshots and game clips. Their CDN URIs are signed, so the tab shows thumbnails and opens a capture in a dialog (outside the redrawn part, so a data change leaves it open) with a download link and a close button, straight from Microsoft. Only captures the console uploaded appear; an in-game photo mode (e.g. Rockstar's) is not an Xbox capture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16fix(xbox): follow a power change quicklyDanilo M.1-1/+7
2026-11-16fix(xbox): say what to do when the console is unreachableDanilo M.1-0/+4
2026-11-16feat(xbox): one games list with installed badgesDanilo M.1-14/+44
2026-11-16feat(xbox): console model, region, flags and installed titlesDanilo M.1-1/+15
2026-11-16fix(xbox): name the client, so xccs answersDanilo M.1-1/+1
2026-11-16fix(xbox): a refused console list no longer blanks the tab; tab iconDanilo M.1-1/+7
xccs answers 403 from its gateway while every other Xbox Live endpoint answers, and that one failure marked the whole tab offline. The console list now fails on its own, the tab says console control is unavailable, and the rest reads. The Xbox tab gets the Xbox glyph like the others. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16fix(xbox): a redrawn hold never fires, and start clears the flagDanilo M.1-0/+1
A power button rebuilt mid-hold lost its pointerup, so letting go early still turned the console off; hold.js now drops a hold whose button is no longer in the page. status.xbox is written 0 on start, in case a crash left it at 1. The "ago" texts move on each minute, and missing storage names and achievement percentages no longer print null. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16fix(xbox): keep the reader alive and the flags rightDanilo M.1-42/+68
- run() survives any exception from tick(); _http turns http.client.HTTPException into OSError. - Signing out or in again resets the slow-read clock, so the profile is read at once instead of after 10 minutes. - After stop() nothing sets status.xbox back to 1; its compare and write is under a lock. - api() uses a copy of the auth taken under the lock; command() maps a missing auth to "not signed in". - Action and sign-in errors carry Xbox Live's own message when the HTTP error body has one. - type_of caches only a 404; other errors retry on the next tick. - Sign-in: start_login is locked, a poller only ends its own flow, and a failed token save ends it as "failed". - state() is loading only until the first presence read. - Drop a stale placeholder comment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16feat(xbox): Xbox Live reads, presentation flag and console commandsDanilo M.1-1/+134
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16feat(xbox): device code sign-in from the tabDanilo M.1-0/+70
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16feat(xbox): Xbox Live auth chain and token fileDanilo M.1-0/+129
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16feat(xbox): shape Xbox Live responses for the tabDanilo M.1-0/+122
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>