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:
Samuel Elliott
2022-03-25 19:04:08 +00:00
parent 74c6f71a76
commit a737d51839
3 changed files with 9 additions and 5 deletions

View File

@@ -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(),