Skip to content

Commit 3c5b669

Browse files
authored
fix(McReader): Change image selector (#121)
1 parent de2f1ee commit 3c5b669

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/McReader/McReader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import {
3434
const MCR_DOMAIN = 'https://www.mgeko.cc'
3535

3636
export const McReaderInfo: SourceInfo = {
37-
version: '2.0.11',
37+
version: '2.0.12',
3838
name: 'McReader',
3939
icon: 'icon.png',
4040
author: 'Netsky',

src/McReader/McReaderParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const parseChapters = ($: CheerioAPI, mangaId: string): Chapter[] => {
108108

109109
export const parseChapterDetails = ($: CheerioAPI, mangaId: string, chapterId: string): ChapterDetails => {
110110
const pages: string[] = []
111-
for (const img of $('img', 'div#chapter-reader').toArray()) {
111+
for (const img of $('.page-in img[onerror]').toArray()) {
112112
let image = $(img).attr('src') ?? ''
113113
if (!image) image = $(img).attr('data-src') ?? ''
114114
if (!image) continue

0 commit comments

Comments
 (0)