real-debrid-downloader/tests
Sucukdeluxe 1ba635a793 Fix auto-rename double-episode bug and add 62 rename tests
Bug fixed: When a folder already contained the same episode token as
the source file (e.g. Show.S01E05.720p-4sf + s01e05.mkv), the episode
was inserted a second time producing Show.S01E05.720p.S01E05-4sf.

Root cause: The replace produced an identical string, the equality check
fell through to the suffix-insert branch which added the token again.
Fix: Use regex.test() first, then always apply the replacement when
an episode pattern exists in the folder name.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 06:34:46 +01:00
..
auto-rename.test.ts Fix auto-rename double-episode bug and add 62 rename tests 2026-02-28 06:34:46 +01:00
cleanup.test.ts Release v1.4.20 with comprehensive audit fixes (140 issues) and expanded test coverage 2026-02-28 06:23:24 +01:00
debrid.test.ts Release v1.4.20 with comprehensive audit fixes (140 issues) and expanded test coverage 2026-02-28 06:23:24 +01:00
download-manager.test.ts Release v1.4.19 with 4SF/4SJ auto-rename support 2026-02-28 05:50:14 +01:00
extractor.test.ts Release v1.4.20 with comprehensive audit fixes (140 issues) and expanded test coverage 2026-02-28 06:23:24 +01:00
integrity.test.ts Release v1.4.20 with comprehensive audit fixes (140 issues) and expanded test coverage 2026-02-28 06:23:24 +01:00
self-check.ts Reduce cancel lag with non-blocking cleanup in v1.1.25 2026-02-27 11:53:14 +01:00
storage.test.ts Release v1.4.20 with comprehensive audit fixes (140 issues) and expanded test coverage 2026-02-28 06:23:24 +01:00
update.test.ts Release v1.4.20 with comprehensive audit fixes (140 issues) and expanded test coverage 2026-02-28 06:23:24 +01:00
utils.test.ts Release v1.4.20 with comprehensive audit fixes (140 issues) and expanded test coverage 2026-02-28 06:23:24 +01:00