From 1fa50a49bff6bff7ddf4521f661b80e347115944 Mon Sep 17 00:00:00 2001 From: TheNetsky <56271887+TheNetsky@users.noreply.github.com> Date: Mon, 30 Dec 2024 12:51:33 +0100 Subject: [PATCH] Change User-Agent --- src/HentaiCosplay/HentaiCosplay.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HentaiCosplay/HentaiCosplay.ts b/src/HentaiCosplay/HentaiCosplay.ts index 2226a6b..24cb760 100644 --- a/src/HentaiCosplay/HentaiCosplay.ts +++ b/src/HentaiCosplay/HentaiCosplay.ts @@ -34,7 +34,7 @@ import { const HC_DOMAIN = 'https://hentai-cosplay-xxx.com' export const HentaiCosplayInfo: SourceInfo = { - version: '1.1.3', + version: '1.1.4', name: 'HentaiCosplay', icon: 'icon.png', author: 'Netsky', @@ -62,7 +62,7 @@ export class HentaiCosplay implements SearchResultsProviding, MangaProviding, Ch ...(request.headers ?? {}), ...{ 'referer': `${HC_DOMAIN}/`, - 'user-agent': await this.requestManager.getDefaultUserAgent() + 'user-agent': (await this.requestManager.getDefaultUserAgent()).replace(/iPhone/i, 'iPad') } } request.url = request.url.replace(/^http:/, 'https:') @@ -204,7 +204,7 @@ export class HentaiCosplay implements SearchResultsProviding, MangaProviding, Ch method: 'GET', headers: { 'referer': `${HC_DOMAIN}/`, - 'user-agent': await this.requestManager.getDefaultUserAgent() + 'user-agent': (await this.requestManager.getDefaultUserAgent()).replace(/iPhone/i, 'iPad') } }) }