Skip to content

Commit

Permalink
optimize: saucenao head
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed May 2, 2024
1 parent 6e54d21 commit f4e9d3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/saucenao/searcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"reflect"
"strconv"

"github.com/fumiama/terasu/http2"
"github.com/sirupsen/logrus"
zero "github.com/wdvxdr1123/ZeroBot"
"github.com/wdvxdr1123/ZeroBot/message"
Expand Down Expand Up @@ -134,7 +135,7 @@ func init() { // 插件主体
}
}
})
resp, err := http.Head(result.Header.Thumbnail)
resp, err := http2.Head(result.Header.Thumbnail)
msg := make(message.Message, 0, 3)
if s > 80.0 {
msg = append(msg, message.Text("我有把握是这个!"))
Expand Down

0 comments on commit f4e9d3e

Please sign in to comment.