From 4b9d9661751379ea62ebdc2587dff20544c4ada4 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 28 Nov 2026 09:04:21 +0100 Subject: feat(xbox): mark captures saved on the PC, icon save button 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 --- tests/test_xbox.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/test_xbox.py') diff --git a/tests/test_xbox.py b/tests/test_xbox.py index 85146a4..62872af 100644 --- a/tests/test_xbox.py +++ b/tests/test_xbox.py @@ -430,6 +430,11 @@ class Save(Base): xb.user_dir = old self.assertEqual(path, d / "VIDEOS" / "Xbox" / "Some Game 2026-11-23T10-00-00.mp4") self.assertEqual(path.read_bytes(), b"clip") + xb.user_dir = lambda name: d / name + try: + self.assertEqual([c["saved"] for c in x.state()["captures"]], [True, False]) + finally: + xb.user_dir = old class Commands(Base): -- cgit v1.2.3