🐛 Fix solidpkg url for retailclient
This commit is contained in:
parent
25d8994593
commit
c76d5035bd
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ export default async function getSolidpkg(product: Product, from: number, to: nu
|
||||||
}
|
}
|
||||||
|
|
||||||
//Download .solidpkg file
|
//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
|
//Parse .solidpkg file
|
||||||
const fileEntries = readSsnFile(ssnFile);
|
const fileEntries = readSsnFile(ssnFile);
|
||||||
|
|
|
@ -189,7 +189,7 @@ export default function verifyPatchmanifest(manifestFile: xmlJs.Element, product
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'MetafileUrl':
|
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}".`);
|
throw new Error(`Expected valid Value for Key "MetafileUrl" in patch ${fromNum}to${toNum} but it was "${valueName}".`);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue