diff --git a/src/ssn/getPatch.ts b/src/ssn/getPatch.ts index f56f8a6..26bf306 100644 --- a/src/ssn/getPatch.ts +++ b/src/ssn/getPatch.ts @@ -52,7 +52,11 @@ export default async function getPatch({ product, from, to, sourceDirectory, tar const solidpkg = await getSolidpkg(product, from, to); function createUrlObject({ name, length }: {name: string, length: number}) { - return { host: 'cdn-patch.swtor.com', path: `/patch/${product}/${product}_${from}to${to}/${name}`, size: length }; + return { + host: 'cdn-patch.swtor.com', + path: `/patch/${product.startsWith('retailclient_') ? `${product.substring(13)}/` : ''}${product}/${product}_${from}to${to}/${name}`, + size: length, + }; } //start download, making sure that .zip file downloads first