real-debrid-downloader/src/main
Sucukdeluxe cbb3fce7ef Fix: Hybrid-Race liess .DL.+Doppeltonspur auf einzelnen Episoden zurueck
Symptom: Bei manchen Episoden (z.B. Desperate Housewives S03E08/E11/E17)
blieb der .DL.-Marker stehen UND beide Tonspuren (DE+EN) erhalten — obwohl
keepGermanAudioOnly aktiv war und alle anderen Episoden des Pakets sauber
verarbeitet wurden. Die Vermutung "langer Titel" war falsch; die betroffenen
Episoden hatten gleich lange Namen wie die sauberen.

Ursache (im Support-Bundle bewiesen): genau die 3 Episoden hatten null
"Tonspur-Bereinigung OK"-Zeilen. Im Hybrid-Modus laeuft der Entpacker
SEPARAT von der per-Paket-Kette (autoRename -> keepGermanAudio -> collect).
Waehrend ein langsamer Remux einer anderen Episode (1,5 GB, ~3 s) lief,
entpackte der Extraktor frische .DL.-MKVs in denselben extractDir — also
NACH dem Datei-Scan von keepGermanAudio, aber bevor der Ketten-Abschluss-
collect lief. collectMkvFilesToLibrary griff sie dann mit .DL. ab und
verschob sie in die MKV-Bibliothek, bevor ihre eigene Tonspur-Bereinigung
je lief. Einmal aus extractDir heraus, fand der finale Deferred-
keepGermanAudio sie nicht mehr. Das 2000-ms-Frische-Gate schuetzte nicht,
weil die Dateien beim collect schon ~2,3 s alt waren.

Fix: collectMkvFilesToLibrary haelt im Hybrid-Lauf (deferFreshFiles=true)
bei aktivem keepGermanAudioOnly jede remuxbare Datei (.mkv/.mp4) zurueck,
die noch den .DL.-Marker traegt — sie hat die Tonspur-Bereinigung sicher
noch nicht durchlaufen. Sie bleibt in extractDir und wird von einer
spaeteren Hybrid-Runde ODER dem finalen Deferred-Pass (erst keepGermanAudio,
dann collect mit deferFreshFiles=false) bereinigt + gesammelt. Praezise auf
remuxbare Dateien begrenzt: eine .DL.avi ruehrt keepGermanAudio nie an, also
darf sie nicht haengen bleiben. Der Deferred-Pass (deferFreshFiles=false)
ist NICHT betroffen — dort darf eine legitim doppeltonige Datei (kein
DE-Track) weiterhin mit .DL. gesammelt werden, statt fuer immer liegen zu
bleiben.

Regressionstest tests/hybrid-collect-race.test.ts (3 Faelle): Hybrid haelt
remuxbare .DL.-Datei zurueck (sammelt bereinigte mkv + nicht-remuxbare
.DL.avi trotzdem), Deferred sammelt sie, keepGermanAudioOnly aus haelt
nichts zurueck.
2026-06-10 15:53:47 +02:00
..
account-check.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
account-rotation-log.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
all-debrid-web.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
app-controller.ts Fix: Webhook-Settings — Backup-Maskierung + Support-Bundle-Diagnose 2026-06-10 00:35:54 +02:00
audit-log.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
backup-crypto.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
backup-payload.ts Backup: nur Settings als Default + 4 Selektions/Flicker-Bugfixes 2026-06-07 04:40:54 +02:00
bestdebrid-web.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
cleanup.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
constants.ts Feature: Discord-Ping in Benachrichtigungen (optionale Erwaehnung) 2026-06-09 21:52:47 +02:00
container.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
debrid.ts Fix Mega-Web rotation skipping accounts on a timeout abort 2026-06-08 13:33:49 +02:00
debug-server.ts Add extended diagnostics logging 2026-06-07 17:00:06 +02:00
debug-setup.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
desktop-rename-log.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
download-completion.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
download-manager.ts Fix: Hybrid-Race liess .DL.+Doppeltonspur auf einzelnen Episoden zurueck 2026-06-10 15:53:47 +02:00
error-ring.ts Add extended diagnostics logging 2026-06-07 17:00:06 +02:00
extractor.ts Fix: verschachtelte Entpack-Fortschritte wurden bei jedem Lauf verworfen 2026-06-08 22:47:34 +02:00
fs-error.ts Add extended diagnostics logging 2026-06-07 17:00:06 +02:00
integrity.ts Release v1.4.31 with full bug-audit hardening 2026-03-01 00:33:26 +01:00
item-log.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02: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
log-timestamp.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
logger.ts Fix: Logger-Flush konnte ungeschriebene Zeilen verlieren (Race mit 1MB-Cap) 2026-06-08 22:33:11 +02:00
main.ts Fix: Run-Lebenszyklus — Stop-Summary, Scheduler-Race, ehrliche Run-Ende-Meldung, Boot-Re-Arm 2026-06-10 00:34:31 +02:00
mega-public-api.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
mega-web-fallback.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
notify.ts Fix: Webhook-Zustellung haertbar — Discord-Rate-Limit, Retries, Kappung, Logging 2026-06-10 00:17:57 +02:00
package-log.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
realdebrid-web.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
realdebrid.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
rename-log.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
session-log.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
startup-health-check.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
storage.ts Feature: Discord-Ping in Benachrichtigungen (optionale Erwaehnung) 2026-06-09 21:52:47 +02:00
support-bundle.ts Add extended diagnostics logging 2026-06-07 17:00:06 +02:00
support-data.ts Fix: Webhook-Settings — Backup-Maskierung + Support-Bundle-Diagnose 2026-06-10 00:35:54 +02:00
trace-log.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
update.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00
utils.ts Harden type safety and recovery guards 2026-03-10 05:54:19 +01:00
video-processor.ts Fix: zu weite Deutsch-Erkennung konnte falsche Tonspur behalten 2026-06-08 22:31:34 +02:00
windows-host-diagnostics.ts chore: remove all source code comments and internal artifacts 2026-06-06 04:53:54 +02:00