Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhudw committed Mar 11, 2024
1 parent 9f73e63 commit 3773eb7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions app/dpmbj.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ import (

const (
//故宫名画 minghuaji.dpm.org.cn
//来源 https://minghuaji.dpm.org.cn/js/gve.js5
//来源 https://minghuaji.dpm.org.cn/js/gve.js
// array[3] 是Key, array[5] 是IV
MINGHUAJI_KEY = "TRADlRXcAl3uzfuK"
MINGHUAJI_IV = "tDrpStrJPT3h4xrM"
MINGHUAJI_KEY = "ucv4uHn5bynSi42c"
MINGHUAJI_IV = "CGnpTaoTS5sIG5SK"

//数字文物 digicol.dpm.org.cn
//来源 https://digicol.dpm.org.cn/js/gve.js
// array[3] 是Key, array[5] 是IV
DIGICOL_KEY = "VfYr2S2PrT8N6unK"
DIGICOL_IV = "0Bz1Rm1bCkLG5QKz"
DIGICOL_KEY = "XxHgrFq2IzqOgORm"
DIGICOL_IV = "3HhRveOYbpEBrwqF"
)

type DpmBj struct {
Expand Down
2 changes: 1 addition & 1 deletion app/huawen.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (r *Huawen) do(pdfUrl string) (msg string, err error) {
opts := gohttp.Options{
DestFile: dest,
Overwrite: false,
Concurrency: config.Conf.Threads,
Concurrency: 1,
CookieFile: config.Conf.CookieFile,
CookieJar: r.dt.Jar,
Headers: map[string]interface{}{
Expand Down
3 changes: 2 additions & 1 deletion app/tjlswx.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,13 @@ func (r Tjlswx) download() (msg string, err error) {
fmt.Println(err)
return "getVolumes", err
}
host := strings.Replace(r.dt.UrlParsed.Host, ":", "_", 1)
for i, vol := range respVolume {
if config.Conf.Volume > 0 && config.Conf.Volume != i+1 {
continue
}
vid := util.GenNumberSorted(i + 1)
r.dt.SavePath = CreateDirectory(r.dt.UrlParsed.Host, r.dt.BookId, vid)
r.dt.SavePath = CreateDirectory(host, r.dt.BookId, vid)
canvases, err := r.getCanvases(vol, r.dt.Jar)
if err != nil || canvases == nil {
fmt.Println(err)
Expand Down

0 comments on commit 3773eb7

Please sign in to comment.