feat(search): add logging, rate limiting, and genre ID support

Enhance the ITunesProvider by adding logging with detailed caller information, implementing rate limiting to prevent API abuse, and supporting genre IDs for more precise searches. Also, update the User-Agent string and improve error handling and logging throughout the search and charts functionality.
This commit is contained in:
2025-03-30 00:14:24 +08:00
parent bd270a09d0
commit 0e04abf4b8
5 changed files with 78 additions and 24 deletions

4
go.mod
View File

@@ -5,8 +5,12 @@ go 1.23
require github.com/mmcdole/gofeed v1.3.0
require (
github.com/benbjohnson/clock v1.3.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
go.uber.org/ratelimit v0.3.1 // indirect
golang.org/x/sys v0.5.0 // indirect
)
require (