Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1b86ac2

Browse files
committed
Fix VoidScans
1 parentaffd324 commit1b86ac2

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

‎src/VoidScans/VoidScans.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const BASE = "https://voidscans.net"
1515

1616
exportconstVoidScansInfo:SourceInfo={
1717
icon:"icon.svg",
18-
version:"1.3.0",
18+
version:"1.3.1",
1919
name:"VoidScans",
2020
author:"PythonCoderAS",
2121
authorWebsite:"https://github.com/PythonCoderAS",

‎src/VoidScans/VoidScansParser.ts‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import{Chapter,LanguageCode,Manga,MangaStatus,MangaTile}from"paperback-extensions-common";
22

33
exportclassVoidScansParser{
4+
5+
pageRegex=/src:"(https:\/\/beta\.voidscans\.net\/[^\s"']+)"/g
6+
47
parseMangaList($:CheerioStatic,base:string){
58
constmangaTiles:MangaTile[]=[];
69
$("div.col").map((index,element)=>{
@@ -59,12 +62,13 @@ export class VoidScansParser {
5962

6063
parsePages($:CheerioStatic):string[]{
6164
constpages:string[]=[];
62-
$("div[data-image]").map((index,element)=>{
63-
consturl=element.attribs["data-image"];
64-
if(url){
65-
pages.push(url);
65+
constdata=$("script:not([src])[type]").html();
66+
if(data){
67+
constmatches=[...data.matchAll(this.pageRegex)];
68+
for(leti=0;i<matches.length;i++){
69+
pages.push(matches[i][1])
6670
}
67-
})
71+
}
6872
returnpages;
6973
}
7074

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp