diff --git a/sources/base/gravureblogger/gravureblogger.go b/sources/base/gravureblogger/gravureblogger.go index 5f3475f..fa9d0ed 100755 --- a/sources/base/gravureblogger/gravureblogger.go +++ b/sources/base/gravureblogger/gravureblogger.go @@ -13,7 +13,7 @@ import ( "github.com/PuerkitoBio/goquery" - "goyomi/internal/httpclient" + "goyomi/internal/httpclient/flare" "goyomi/internal/source" "goyomi/sources/base/util" ) @@ -28,12 +28,12 @@ type Config struct { type Source struct { cfg Config - client *httpclient.Client + client *flare.Client id int64 } func New(cfg Config) *Source { - c := httpclient.NewClient(httpclient.WithRateLimit(1, 2)) + c := flare.NewClient(flare.WithRateLimit(1, 2)) return &Source{cfg: cfg, client: c, id: source.GenerateSourceID(cfg.Name, cfg.Lang)} } diff --git a/sources/base/mangawork/mangawork.go b/sources/base/mangawork/mangawork.go index e854693..d1b61f5 100755 --- a/sources/base/mangawork/mangawork.go +++ b/sources/base/mangawork/mangawork.go @@ -16,7 +16,7 @@ import ( "github.com/PuerkitoBio/goquery" - "goyomi/internal/httpclient" + "goyomi/internal/httpclient/flare" "goyomi/internal/source" "goyomi/sources/base/util" ) @@ -35,7 +35,7 @@ type Config struct { type Source struct { cfg Config - client *httpclient.Client + client *flare.Client id int64 } @@ -58,7 +58,7 @@ func New(cfg Config) *Source { if cfg.LatestOrder == "" { cfg.LatestOrder = "update" } - c := httpclient.NewClient(httpclient.WithRateLimit(2, 3)) + c := flare.NewClient(flare.WithRateLimit(2, 3)) return &Source{cfg: cfg, client: c, id: source.GenerateSourceID(cfg.Name, cfg.Lang)} } diff --git a/sources/base/mangotheme/mangotheme.go b/sources/base/mangotheme/mangotheme.go index e9563e3..4bc70d9 100755 --- a/sources/base/mangotheme/mangotheme.go +++ b/sources/base/mangotheme/mangotheme.go @@ -15,7 +15,7 @@ import ( "net/http" "strings" - "goyomi/internal/httpclient" + "goyomi/internal/httpclient/flare" "goyomi/internal/source" "goyomi/sources/base/util" ) @@ -30,7 +30,7 @@ type Config struct { type Source struct { cfg Config - client *httpclient.Client + client *flare.Client id int64 } @@ -38,7 +38,7 @@ func New(cfg Config) *Source { if cfg.APIPath == "" { cfg.APIPath = "/api" } - c := httpclient.NewClient(httpclient.WithRateLimit(2, 1)) + c := flare.NewClient(flare.WithRateLimit(2, 1)) return &Source{cfg: cfg, client: c, id: source.GenerateSourceID(cfg.Name, cfg.Lang)} } diff --git a/sources/base/mccms/mccms.go b/sources/base/mccms/mccms.go index f0a61db..506149b 100755 --- a/sources/base/mccms/mccms.go +++ b/sources/base/mccms/mccms.go @@ -10,7 +10,7 @@ import ( "github.com/PuerkitoBio/goquery" - "goyomi/internal/httpclient" + "goyomi/internal/httpclient/flare" "goyomi/internal/source" "goyomi/sources/base/util" ) @@ -25,7 +25,7 @@ type Config struct { type Source struct { cfg Config - client *httpclient.Client + client *flare.Client id int64 } @@ -33,7 +33,7 @@ func New(cfg Config) *Source { if cfg.LazyLoadAttr == "" { cfg.LazyLoadAttr = "data-original" } - c := httpclient.NewClient(httpclient.WithRateLimit(2, 3)) + c := flare.NewClient(flare.WithRateLimit(2, 3)) return &Source{cfg: cfg, client: c, id: source.GenerateSourceID(cfg.Name, cfg.Lang)} } diff --git a/sources/base/multichan/multichan.go b/sources/base/multichan/multichan.go index 3a839d2..2006a37 100755 --- a/sources/base/multichan/multichan.go +++ b/sources/base/multichan/multichan.go @@ -12,7 +12,7 @@ import ( "github.com/PuerkitoBio/goquery" - "goyomi/internal/httpclient" + "goyomi/internal/httpclient/flare" "goyomi/internal/source" "goyomi/sources/base/util" ) @@ -25,12 +25,12 @@ type Config struct { type Source struct { cfg Config - client *httpclient.Client + client *flare.Client id int64 } func New(cfg Config) *Source { - c := httpclient.NewClient(httpclient.WithRateLimit(2, 3)) + c := flare.NewClient(flare.WithRateLimit(2, 3)) return &Source{cfg: cfg, client: c, id: source.GenerateSourceID(cfg.Name, cfg.Lang)} } diff --git a/sources/base/natsuid/natsuid.go b/sources/base/natsuid/natsuid.go index 1b1ee3c..9276357 100755 --- a/sources/base/natsuid/natsuid.go +++ b/sources/base/natsuid/natsuid.go @@ -15,7 +15,7 @@ import ( "github.com/PuerkitoBio/goquery" - "goyomi/internal/httpclient" + "goyomi/internal/httpclient/flare" "goyomi/internal/source" "goyomi/sources/base/util" ) @@ -29,7 +29,7 @@ type Config struct { type Source struct { cfg Config - client *httpclient.Client + client *flare.Client id int64 } @@ -37,7 +37,7 @@ func New(cfg Config) *Source { if cfg.PostType == "" { cfg.PostType = "manga" } - c := httpclient.NewClient(httpclient.WithRateLimit(1, 2)) + c := flare.NewClient(flare.WithRateLimit(1, 2)) return &Source{cfg: cfg, client: c, id: source.GenerateSourceID(cfg.Name, cfg.Lang)} }