Skip to content

run platform detection on the usenet and DDL import paths - #36

Merged
JeremiahM37 merged 2 commits into
JeremiahM37:mainfrom
vedhavyas:fix/nzb-platform-detect
Aug 28, 2026
Merged

run platform detection on the usenet and DDL import paths#36
JeremiahM37 merged 2 commits into
JeremiahM37:mainfrom
vedhavyas:fix/nzb-platform-detect

Conversation

@vedhavyas

Copy link
Copy Markdown
Contributor

The usenet and DDL import paths never ran platform detection, so a console ROM set that
arrives without a platform label on its search row downloads fine and then sits in staging
with its job marked completed. Only the torrent path had the cascade. I pulled it out of
organizeGame into resolvePlatform and call it from all three - the comment above
nzbDestPath already noted those two had drifted once before, which is what pointed me at
it.

I left the unknown-platform branch reporting status "completed" and only added a log line
there, since changing it touches retry semantics and the UI and seemed like your call
rather than mine.

Verified on my own instance: the same NZB that previously stranded with
Downloaded (unknown platform, left in staging) now resolves SNES from its files and
lands in the ROM library.

The usenet path routed on whatever the search row carried, so a console ROM
set that arrived with no platform_slug matched neither destination and was
left in the download directory on a job reporting completed. The torrent
path has run the full detection cascade all along.

Pulled that cascade into resolvePlatform and called it from both paths
rather than adding a second copy, since nzb.go already notes these two
having drifted once before.
organizeDDLFile had the identical fallthrough: no cascade, so content that
arrived with no platform_slug was left in staging on a job reporting
completed. Vimm's Lair is a DDL source and its rows do carry slugs, which is
what has kept this one out of sight.
@JeremiahM37
JeremiahM37 merged commit 9a33532 into JeremiahM37:main Aug 28, 2026
6 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.

2 participants