Skip to content

fix(importer): recover media extensions from subject headers - #1064

Merged
javi11 merged 1 commit into
mainfrom
fix/subject-header-media-extension
Nov 11, 2026
Merged

javi11 merged 1 commit into
mainfrom
fix/subject-header-media-extension

Conversation

@javi11

@javi11 javi11 commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

When an obfuscated filename such as 6WMC.mkv loses to the readable subject prefix, the selected release name has no media extension and fails the allowed-extension filter. Extension recovery previously ran only for PAR2 names.

Apply the same recovery to selected subject-header names, taking a known media suffix from the quoted filename or yEnc header while preserving the full release name and existing archive/sidecar guards.

Adds 12 regression cases covering the reported input, suffix precedence, uppercase and audio extensions, existing extensions, archive names, and missing suffix sources. The reported case failed before the fix and passes afterward. Full go test ./... passes.

Fixes #1061.

@javi11
javi11 marked this pull request as ready for review November 11, 2026 21:31
@javi11
javi11 merged commit e56cddf into main Nov 11, 2026
2 checks passed
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.

AsRequested NZBs still fail on v0.4.0: extensionless name comes from the subject

1 participant