diff --git a/src/ssn/getSolidpkg.ts b/src/ssn/getSolidpkg.ts index 09802d7..b25f317 100644 --- a/src/ssn/getSolidpkg.ts +++ b/src/ssn/getSolidpkg.ts @@ -24,7 +24,7 @@ export default async function getSolidpkg(product: Product, from: number, to: nu } //Download .solidpkg file - const ssnFile = await getUrlContents({ host: 'cdn-patch.swtor.com', path: `/patch/${product}/${product}_${from}to${to}.solidpkg` }); + const ssnFile = await getUrlContents({ host: 'cdn-patch.swtor.com', path: `/patch/${product.startsWith('retailclient_') ? `${product.substring(13)}/` : ''}${product}/${product}_${from}to${to}.solidpkg` }); //Parse .solidpkg file const fileEntries = readSsnFile(ssnFile); diff --git a/src/ssn/verify/verifyPatchmanifest.ts b/src/ssn/verify/verifyPatchmanifest.ts index 753dc9f..f2d73dd 100644 --- a/src/ssn/verify/verifyPatchmanifest.ts +++ b/src/ssn/verify/verifyPatchmanifest.ts @@ -189,7 +189,7 @@ export default function verifyPatchmanifest(manifestFile: xmlJs.Element, product } break; case 'MetafileUrl': - if (valueName !== `http://cdn-patch.swtor.com/patch/${product}/${product}_${fromNum}to${toNum}.solidpkg`) { + if (valueName !== `http://cdn-patch.swtor.com/patch/${product.startsWith('retailclient_') ? `${product.substring(13)}/` : ''}${product}/${product}_${fromNum}to${toNum}.solidpkg`) { throw new Error(`Expected valid Value for Key "MetafileUrl" in patch ${fromNum}to${toNum} but it was "${valueName}".`); } break;