fix(sync): 403 InnerTube = version client inventée; aligne WEB 2.20260623.01.00 + expose ytReason

This commit is contained in:
2026-09-26 23:01:10 -04:00
parent 5a19f8f11f
commit 41875dc50d
3 changed files with 13 additions and 3 deletions
+1
View File
@@ -716,6 +716,7 @@ r.get('/oauth/google/yt-history', authMiddlewareCookieAware, oauthLimiter, async
return res.json({ items, count: items.length, hasMore });
} catch (error) {
const out = { error: error?.message || 'ythistory_fetch_failed' };
if (error?.ytReason) out.ytReason = error.ytReason;
if (error?.status === 401) {
out.hint = 'Session Google expirée : déconnectez puis reconnectez Google.';
}