This commit is contained in:
miles committed 2026-07-10 14:08:44 -05:00
1 parent fa139ea580
commit bf90aa0e92
14 files changed
+358 -14

No files matched your search

+2 -2
View File
@@ -120,7 +120,7 @@ export async function findValidThumbnail(title: string, platform: string): Promi
function fetchText(url: string): Promise<string> {
return new Promise((resolve, reject) => {
const req = httpsGet(url, { headers: { 'User-Agent': 'OmniEmu/0.1.1' }, timeout: 10000 }, (res) => {
const req = httpsGet(url, { headers: { 'User-Agent': 'OmniEmu/0.1.2' }, timeout: 10000 }, (res) => {
let data = '';
res.on('data', (chunk: string) => data += chunk);
res.on('end', () => resolve(data));
@@ -134,7 +134,7 @@ function urlExists(url: string): Promise<boolean> {
return new Promise((resolve) => {
const req = httpsGet(url, {
method: 'GET',
headers: { 'User-Agent': 'OmniEmu/0.1.1' },
headers: { 'User-Agent': 'OmniEmu/0.1.2' },
timeout: 10000,
}, (res) => {
// GitHub raw returns 200 for existing or redirects to it