From fc9c441fa8f0b2361d8f50ec2a23ea50d00a8dc0 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Mon, 9 Jul 2018 15:57:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20typo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/interfaces/ISolidFile.ts | 4 ++-- src/ssn/verify/verifySolidpkg.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/interfaces/ISolidFile.ts b/src/interfaces/ISolidFile.ts index ff9fbd7..084bc2c 100644 --- a/src/interfaces/ISolidFile.ts +++ b/src/interfaces/ISolidFile.ts @@ -27,8 +27,8 @@ interface ISolid { announce: string; /** Title of this torrent in the format `${product}: ${from}to${to}` */ title: string; - /** Unknown integer, either 16097 or 16098. */ - networkgroupid: 16097 | 16098; + /** Unknown integer, either 16068 or 16097. */ + networkgroupid: 16068 | 16097; /** The URL where the files from this torrent are stored, in the format `http://cdn-patch.swtor.com/patch/${product}/${product}_${from}to${to}/` */ reliable: string; /** Always '0' or '1' */ diff --git a/src/ssn/verify/verifySolidpkg.ts b/src/ssn/verify/verifySolidpkg.ts index e040b46..da5fb50 100644 --- a/src/ssn/verify/verifySolidpkg.ts +++ b/src/ssn/verify/verifySolidpkg.ts @@ -16,8 +16,8 @@ export default function verifySolidpkg(file: ISolid, { product, from, to }: {pro if (file.title !== `${product}: ${from}to${to}`) { throw new Error(`Expected title "${product}: ${from}to${to}" but it was "${file.title}".`); } - if (![16097, 16098].includes(file.networkgroupid)) { - throw new Error(`Expected networkgroupid 16097 or 16098 but it was "${file.networkgroupid}".`); + if (![16068, 16097].includes(file.networkgroupid)) { + throw new Error(`Expected networkgroupid 16068 or 16097 but it was "${file.networkgroupid}".`); } if (file.reliable !== `http://cdn-patch.swtor.com/patch/${product}/${product}_${from}to${to}/`) { throw new Error(`Expected reliable URL but it was "${file.reliable}".`);