Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
More possible enjin urls for init file cookie
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
  • Loading branch information
Kas-tle committed Apr 26, 2023
1 parent aac6fdb commit 814161e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "enjinscraper",
"version": "1.5.3",
"version": "1.5.4",
"description": "Scrapes an Enjin site via the Enjin API",
"repository": "https://github.com/Kas-tle/EnjinScraper.git",
"author": "Joshua Castle <packages@kastle.dev",
Expand Down
2 changes: 1 addition & 1 deletion src/scrapers/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ async function getURLArrayCfBmToken(urls: string[]): Promise<string> {
let cfbmToken = '';
try {
const enjinURLs = urls.filter(url =>
{return url.startsWith('http://assets.enjin.com/') || url.startsWith('https://assets-cloud.enjin.com/'); }
{return url.startsWith('http://assets.enjin.com/') || url.startsWith('https://assets.enjin.com/') || url.startsWith('https://assets-cloud.enjin.com/') || url.startsWith('https://resources.enjin.com/') ; }
);
if (enjinURLs.length > 0) {
const cfbmTokenResponse = await getRequest('', enjinURLs[0], {}, '', true, 'arraybuffer');
Expand Down

0 comments on commit 814161e

Please sign in to comment.