From 55aa869b1a77cb550cfd199a8b64aedaaed06f34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Fri, 14 Oct 2022 14:30:05 +0800 Subject: [PATCH] update deps --- go.mod | 2 +- go.sum | 4 ++-- plugin/danbooru/tag.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index f8dc62b1f9..a5b6fa7e48 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/Coloured-glaze/gg v1.3.4 - github.com/FloatTech/AnimeAPI v1.5.2-0.20221011154111-c322b785cadb + github.com/FloatTech/AnimeAPI v1.5.2-0.20221014062715-20d9e9dcd1b0 github.com/FloatTech/floatbox v0.0.0-20221011153549-68005767c531 github.com/FloatTech/sqlite v0.5.0 github.com/FloatTech/ttl v0.0.0-20220715042055-15612be72f5b diff --git a/go.sum b/go.sum index 2360221051..c402068bfd 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,8 @@ github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym github.com/Coloured-glaze/gg v1.3.4 h1:l31zIF/HaVwkzjrj+A56RGQoSKyKuR1IWtIrqXGFStI= github.com/Coloured-glaze/gg v1.3.4/go.mod h1:Ih5NLNNDHOy3RJbB0EPqGTreIzq/H02TGThIagh8HJg= github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= -github.com/FloatTech/AnimeAPI v1.5.2-0.20221011154111-c322b785cadb h1:K28MKPITuz+V9jEvSKVLM5/kAra9uEI89lhAM8Nh7jo= -github.com/FloatTech/AnimeAPI v1.5.2-0.20221011154111-c322b785cadb/go.mod h1:RgcMDA1S7C81bq7HQjygMEEo+EXwAlsutvKMv7DafgY= +github.com/FloatTech/AnimeAPI v1.5.2-0.20221014062715-20d9e9dcd1b0 h1:/hbz2ngVRGCzfPGkR1rTGmNNRnXa3f+xq0Ya0BwUJqI= +github.com/FloatTech/AnimeAPI v1.5.2-0.20221014062715-20d9e9dcd1b0/go.mod h1:RgcMDA1S7C81bq7HQjygMEEo+EXwAlsutvKMv7DafgY= github.com/FloatTech/floatbox v0.0.0-20221011153549-68005767c531 h1:Z0yn6LFhEyC12hj+TBXc2P7/kWlCd/jlwv4JFndgpnw= github.com/FloatTech/floatbox v0.0.0-20221011153549-68005767c531/go.mod h1:4tfIeB74L1RzhNp3nNjaTw8m3IEnc+q/k6k/MhL07ks= github.com/FloatTech/sqlite v0.5.0 h1:U7J5Omc534PqmH6csfu+ypCo3DS8L91l5lTsxUu3b/U= diff --git a/plugin/danbooru/tag.go b/plugin/danbooru/tag.go index 3980a32918..d726a7b7c2 100644 --- a/plugin/danbooru/tag.go +++ b/plugin/danbooru/tag.go @@ -59,7 +59,7 @@ func tagurl(name, u string) (im image.Image, err error) { return } tags := make(map[string]float64) - err = json.Unmarshal(bytes.ReplaceAll(data, []byte("'"), []byte("\"")), &tags) + err = json.Unmarshal(data, &tags) if err != nil { return }