Skip to content

fix: mod downloads fail to extract after Nexus changed download URL format #75

Description

@Geeknasty

Description

As of June 11, Nexus Mods changed their download link format from filename-based (e.g. Battlefront-Expanded-Kyber-Collection-9291-V7-3-3.zip) to a random UUID (e.g. ed/0d/f2/ed0df235-d567-4b44-be3d-da4afe632bca).

Since the Launcher derives filenames from the URL, downloaded mods now have no extension. The example above downloads as ed0df235-d567-4b44-be3d-da4afe632bca. The archive extractor relies on file extension to identify .zip/.rar/.7z archives, so extraction silently fails.

Steps To Reproduce

  1. Download any mod from Nexus Mods (uploaded after June 11) through the Launcher
  2. File downloads successfully
  3. Launcher attempts to extract the downloaded file
  4. Extraction does not occur, no error shown, mod is never installed

Expected Behavior

Downloaded mod files should retain their correct filename and extension, and should extract and install normally, regardless of Nexus's download URL format.

Additional Context

  • Nexus's own app, Vortex, fixed it by reading the filename from the Content-Disposition response header instead of the URL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions