Skip to content

Commit

Permalink
HentaiCosplay Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNetsky committed Sep 8, 2024
1 parent c4b92ed commit f01abdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/HentaiCosplay/HentaiCosplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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:')
Expand Down
3 changes: 2 additions & 1 deletion src/MangaDemon/MangaDemonParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit f01abdc

Please sign in to comment.