Compare commits

..

No commits in common. "main" and "v0.0.6" have entirely different histories.
main ... v0.0.6

2 changed files with 2 additions and 12 deletions

10
.vscode/launch.json vendored
View File

@ -2,20 +2,12 @@
"version": "0.2.0",
"configurations": [
{
"name": "volume",
"name": "Debug download volume",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}",
"args": ["download", "volume", "-n", "2013", "-v", "165880"]
},
{
"name": "novel",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}",
"args": ["download", "novel", "-n", "4325"]
}
]
}

View File

@ -413,9 +413,7 @@ func downloadChapterByPage(page, chapterIdx int, chapter *model.Chapter, outputP
content.Find(".cgo").Remove()
content.Find("center").Remove()
content.Find(".google-auto-placed").Remove()
if strings.Contains(resp.String(), `font-family: "read"`) {
content.Find("p").Last().AddClass("read-font")
}
content.Find("p").Last().AddClass("read-font")
content.Find("img").Each(func(i int, s *goquery.Selection) {
if err != nil {