Improve Nexus import version detection #131

Closed
opened 2023-11-14 15:52:00 +01:00 by lucas · 0 comments
Owner

The file name of the archive downloaded from Nexus contains the version number, but with any special character replaced with -. The current approach to simply replace that back with . works for most mods, but not all.

The proper way would be to

  • take the updated timestamp from the file name
  • load /v1/games/{game_domain_name}/mods/{mod_id}/files.json
  • find the file that matches the updated stamp
  • use the version field from that
The file name of the archive downloaded from Nexus contains the version number, but with any special character replaced with `-`. The current approach to simply replace that back with `.` works for most mods, but not all. The proper way would be to * take the `updated` timestamp from the file name * load `/v1/games/{game_domain_name}/mods/{mod_id}/files.json` * find the file that matches the `updated` stamp * use the `version` field from that
lucas added the
crate/dtmm
status/good first issue
kind
enhancement
stage
actionable
labels 2023-11-14 15:52:00 +01:00
lucas added this to the Mod Manager project 2023-11-14 15:52:00 +01:00
lucas referenced this issue from a commit 2023-11-24 13:59:14 +01:00
lucas referenced this issue from a commit 2023-11-29 14:26:38 +01:00
lucas closed this issue 2023-11-29 18:53:14 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: bitsquid_dt/dtmt#131
No description provided.