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
@@ -157,7 +157,9 @@ export class ImportComponent implements OnInit {
} catch (e: any) {
const code = e?.error?.error || e?.message || 'ythistory_fetch_failed';
const hint = e?.error?.hint;
this.ytAutoError.set(hint ? `${code} — ${hint}` : code);
const ytReason = e?.error?.ytReason;
const extra = [hint, ytReason ? `YouTube: ${ytReason}` : ''].filter(Boolean).join(' — ');
this.ytAutoError.set(extra ? `${code} — ${extra}` : code);
} finally {
this.ytAutoLoading.set(false);
}