real-debrid-downloader/src/main
Sucukdeluxe 0be5248a36 Fix: Mega-Debrid Web-Rotation nutzt jetzt die Per-Account-Credentials (echter Rotations-Bug)
Root-Cause (verifiziert via Support-Bundle): Der Web-Unrestrict lief fuer JEDEN rotierten
Account mit den Creds des ersten/Legacy-Accounts (settings.megaLogin), weil MegaWebFallback
EINE geteilte Cookie-Session + festes getCredentials() nutzte UND megaWebUnrestrict ohne
Account-Bezug aufgerufen wurde. Item-Log-Beweis: "Account 2/2 (FabelDavid): Mega-Web Antwort
leer", obwohl FabelDavid real funktioniert — die Rotation nutzte FabelDavid nie wirklich,
sondern immer Account 1 (am Limit). Alle bisherigen Fixes (v1.7.169-172) lagen downstream
dieses Punkts und konnten den Bug nicht beheben.

Fix:
- MegaWebUnrestrictor bekommt optionalen `account`-Parameter; MegaDebridClient.unrestrictViaWeb
  reicht this.login/this.password (den rotierten Account) durch; app-controller leitet ihn weiter.
- MegaWebFallback: Per-Login Session-Cache (Map<login,{cookie,setAt}>) statt einem geteilten
  Cookie; login() gibt das Cookie zurueck, generate() bekommt es als Param. Jeder Account nutzt
  seine eigene Session — kein Re-Login-Thrash unter Parallel-Last (maxParallel=8).

Tests: mega-web-fallback (Login-POST traegt den uebergebenen Account-Login, nicht den Default)
+ debrid-Rotation (jeder Account erhaelt SEINE Creds; Account 2 loest auf). 647 Tests gruen,
tsc 9, Build sauber.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-31 19:59:37 +02:00
..
account-check.ts Account-Rotation: Login/Premium-Badges + Live-Rotations-Panel + "Alle pruefen" 2026-05-30 21:19:23 +02:00
account-rotation-log.ts Rotation: jeden Account-Versuch ins ITEM-Log schreiben (Sichtbarkeit) 2026-05-30 22:50:49 +02:00
all-debrid-web.ts Release v1.6.69 2026-03-06 04:17:22 +01:00
app-controller.ts Fix: Mega-Debrid Web-Rotation nutzt jetzt die Per-Account-Credentials (echter Rotations-Bug) 2026-05-31 19:59:37 +02:00
audit-log.ts Harden support logging and debug setup 2026-03-09 02:47:49 +01:00
backup-crypto.ts Redesign backup system: AES-256-GCM encrypted .mdd format 2026-03-07 16:39:19 +01:00
bestdebrid-web.ts Release v1.6.81 2026-03-06 12:09:39 +01:00
cleanup.ts Harden deferred cleanup races 2026-03-09 17:23:28 +01:00
constants.ts Account-Rotation: Login/Premium-Badges + Live-Rotations-Panel + "Alle pruefen" 2026-05-30 21:19:23 +02:00
container.ts Comprehensive bugfix release v1.6.45 2026-03-05 03:53:28 +01:00
debrid.ts Fix: Mega-Debrid Web-Rotation nutzt jetzt die Per-Account-Credentials (echter Rotations-Bug) 2026-05-31 19:59:37 +02:00
debug-server.ts Fix Debrid-Link retry recovery 2026-03-10 18:20:19 +01:00
debug-setup.ts Add dedicated rename support logging 2026-03-09 04:48:58 +01:00
download-completion.ts Deferred-Post-Processing Lifecycle härten (H1/H2/M1) + 0-Byte-Fix (H3) + Dead Code (N1) 2026-05-23 16:39:34 +02:00
download-manager.ts Rotation: jeden Account-Versuch ins ITEM-Log schreiben (Sichtbarkeit) 2026-05-30 22:50:49 +02:00
extractor.ts Fix: neu hinzugefügtes Archiv-Passwort greift jetzt ohne App-Neustart 2026-05-24 19:07:22 +02:00
extractor.ts.bak Refactor: Extractor in 18 Sektionen reorganisiert 2026-03-10 23:47:02 +01:00
integrity.ts Release v1.4.31 with full bug-audit hardening 2026-03-01 00:33:26 +01:00
item-log.ts Harden download integrity, extraction safety, and update security 2026-03-28 16:27:21 +01:00
link-export.ts Add package and item link export 2026-03-09 04:11:18 +01:00
link-parser.ts Add package and item link export 2026-03-09 04:11:18 +01:00
logger.ts Add support bundle and trace tooling 2026-03-09 02:15:32 +01:00
main.ts Feature: Mega-Debrid-Account beim Hinzufuegen sofort pruefen (Gueltigkeit + Premium) 2026-05-31 14:20:21 +02:00
mega-public-api.ts v1.7.155 Mega.nz Filename-Pre-Resolve via Public API 2026-05-23 01:00:08 +02:00
mega-web-fallback.ts Fix: Mega-Debrid Web-Rotation nutzt jetzt die Per-Account-Credentials (echter Rotations-Bug) 2026-05-31 19:59:37 +02:00
package-log.ts Harden download integrity, extraction safety, and update security 2026-03-28 16:27:21 +01:00
realdebrid-web.ts Fix Real-Debrid web login session reuse 2026-03-09 00:03:05 +01:00
realdebrid.ts Add daily traffic limits, auto-sort packages, Debrid-Link multi-key improvements 2026-03-07 02:29:48 +01:00
rename-log.ts Revert daily-log and queue-scope changes back to v1.7.112 state 2026-03-24 10:15:28 +01:00
session-log.ts Comprehensive bugfix release v1.6.45 2026-03-05 03:53:28 +01:00
startup-health-check.ts Startup Health-Check: proaktive Warnungen bei Problem-Zustaenden 2026-04-20 20:20:25 +02:00
storage.ts Account-Rotation: Login/Premium-Badges + Live-Rotations-Panel + "Alle pruefen" 2026-05-30 21:19:23 +02:00
support-bundle.ts Support-Bundle verschlankt: Item-/Package-Logs nur noch letzte 8h 2026-05-28 17:53:09 +02:00
support-data.ts Add app runtime statistics 2026-03-09 04:59:00 +01:00
trace-log.ts Harden type safety and recovery guards 2026-03-10 05:54:19 +01:00
update.ts Harden download integrity, extraction safety, and update security 2026-03-28 16:27:21 +01:00
utils.ts Harden type safety and recovery guards 2026-03-10 05:54:19 +01:00
windows-host-diagnostics.ts Fix support bundle export freeze and resume prealloc recovery 2026-03-29 03:25:58 +02:00