Skip to content

Fix: do not rename directly downloaded files after unpack and add RenameObfuscatedFiles stage#814

Draft
dnzbk wants to merge 2 commits into
developfrom
fix/deobfuscation
Draft

Fix: do not rename directly downloaded files after unpack and add RenameObfuscatedFiles stage#814
dnzbk wants to merge 2 commits into
developfrom
fix/deobfuscation

Conversation

@dnzbk

@dnzbk dnzbk commented May 25, 2026

Copy link
Copy Markdown
Collaborator

Description

  • New RenameObfuscatedFiles stage (runs between RarRename and Unpacking)
  • Skips archives, parity files, disc structures, and RenameIgnoreExt extensions
  • Preserves subtitle language tags (.eng.srt) and sample suffixes
  • Handles collisions: media files get (1) counter, subtitles keep their stem
  • New FileTypes namespace for centralized extension classification
  • IsProbablyLegitimateFilename counter-heuristic (space check) reduces false positives
  • Deobfuscate strips leading [Tag] brackets and stacked Re: prefixes
  • RenameIgnoreExt default -> .txt, .nfo, .sfv, .nzb; description updated
  • webui/locales.source.json regenerated

Testing

  • macOS Tahoe
  • Windows 10/11

@dnzbk dnzbk requested a review from luckedea May 25, 2026 10:19
@dnzbk dnzbk marked this pull request as draft May 25, 2026 14:55
@dnzbk dnzbk force-pushed the fix/deobfuscation branch 9 times, most recently from e888b19 to e82a0c2 Compare June 1, 2026 10:17
@dnzbk dnzbk changed the title Fix: do not rename directly downloaded files after unpack Fix: do not rename directly downloaded files after unpack and add RenameObfuscatedFiles stage Jun 1, 2026
…ameObfuscatedFiles stage

- New `RenameObfuscatedFiles` stage (runs between RarRename and Unpacking)
- Skips archives, parity files, disc structures, and `RenameIgnoreExt` extensions
- Preserves subtitle language tags (`.eng.srt`) and sample suffixes
- Handles collisions: media files get `(1)` counter, subtitles keep their stem
- New `FileTypes` namespace for centralized extension classification
- `IsProbablyLegitimateFilename` counter-heuristic (space check) reduces false positives
- `Deobfuscate` strips leading `[Tag]` brackets and stacked `Re: ` prefixes
- `RenameIgnoreExt` default → `.txt, .nfo, .sfv, .nzb`; description updated
- `webui/locales.source.json` regenerated
@dnzbk dnzbk force-pushed the fix/deobfuscation branch from 62225c8 to bf4e6f3 Compare June 1, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant