mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-09-08 11:25:09 -05:00
Use the previous updated timestamp from SplatNet 2 to check for updates
This prevents redownloading (or missing data) if the local system time is slightly different to SplatNet 2's time.
This commit is contained in:
@@ -272,6 +272,8 @@ ${colour}
|
||||
const mn = body.match(/<html(?:\s+[a-z0-9-]+(?:=(?:"[^"]*"|[^\s>]*))?)*\s+data-nsa-id=(?:"([^"]*)"|([^\s>]*))/i);
|
||||
const [language, region, user_id, nsa_id] = [ml, mr, mu, mn].map(m => m?.[1] || m?.[2] || null);
|
||||
|
||||
debug('SplatNet 2 user', {language, region, user_id, nsa_id});
|
||||
|
||||
return {
|
||||
webserviceToken,
|
||||
url: url.toString(),
|
||||
|
||||
Reference in New Issue
Block a user