diff --git a/src/HentaiCosplay/HentaiCosplay.ts b/src/HentaiCosplay/HentaiCosplay.ts index 13fdabc..55ffb43 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.0', + version: '1.1.1', name: 'HentaiCosplay', icon: 'icon.png', author: 'Netsky', @@ -61,7 +61,8 @@ export class HentaiCosplay implements SearchResultsProviding, MangaProviding, Ch request.headers = { ...(request.headers ?? {}), ...{ - 'referer': `${HC_DOMAIN}/` + 'referer': `${HC_DOMAIN}/`, + 'user-agent': await this.requestManager.getDefaultUserAgent() } } request.url = request.url.replace(/^http:/, 'https:') diff --git a/src/MangaDemon/MangaDemonParser.ts b/src/MangaDemon/MangaDemonParser.ts index ab73e99..a5cff86 100644 --- a/src/MangaDemon/MangaDemonParser.ts +++ b/src/MangaDemon/MangaDemonParser.ts @@ -4,12 +4,13 @@ import { HomeSection, HomeSectionType, PartialSourceManga, - RequestManager, SourceManga, Tag, TagSection } from '@paperback/types' + import { decode as decodeHTMLEntity } from 'html-entities' + import { CheerioAPI } from 'cheerio' export const parseMangaDetails = ($: CheerioAPI, mangaId: string): SourceManga => {