Skip to content

Commit 5734650

Browse files
update.
1 parent c1af867 commit 5734650

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
let headers = {
2-
Platform: 1
2+
'Platform': 1,
3+
'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6,ja;q=0.5',
4+
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0'
35
}
46

57
async function setMangaListFilterOptions() {
@@ -206,13 +208,14 @@ async function getChapterImageList(chapterUrl) {
206208
const rawResponse = await window.Rulia.httpRequest({
207209
url: url,
208210
method: 'GET',
209-
payload: 'format=json'
211+
payload: 'format=json',
212+
headers: headers
210213
});
211214
const response = JSON.parse(rawResponse);
212215
var result = [];
213216
for (var i = 0; i < response.results.chapter.words.length; i++) {
214217
result.push({
215-
url: response.results.chapter.contents[i].url,
218+
url: response.results.chapter.contents[i].url.replace(/c800x/, 'c1500x'),
216219
index: response.results.chapter.words[i],
217220
width: 1,
218221
height: 1

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "@rulia/CopyManga",
33
"title": "拷贝漫画",
44
"description": "拷贝漫画插件.",
5-
"version": "0.0.4",
5+
"version": "0.0.5",
66
"author": "LittleStar_OuO",
77
"tags": ["Copy", "Manga", "CopyManga"],
88
"homepage": "https://github.com/LittleStar-OuO/plugin.CopyManga"
9-
}
9+
}

0 commit comments

Comments
 (0)