Update yandex-music-api-go library
Upgrade to v0.0.0-20261018055743-0456ca0665a6 which fixes the page=0 validation bug in GetArtistTracks/GetArtistAlbums. The library now returns *ArtistTracks/*ArtistAlbums wrappers instead of raw slices, so the YandexClient wrapper extracts the inner slices for backward compatibility. Reverted page numbering back to 0 in monitor since the API bug is fixed server-side/library-side.
This commit is contained in:
1 parent
ed6c26a3af
commit
c228e7e2b7
4 files changed
+23
-5
No files matched your search
@@ -136,7 +136,7 @@ func (m *Monitor) checkArtist(ctx context.Context, artistID int) {
|
||||
|
||||
// checkArtistTracks checks for new tracks from an artist
|
||||
func (m *Monitor) checkArtistTracks(ctx context.Context, artistID int, artistName string) {
|
||||
page := 1
|
||||
page := 0
|
||||
pageSize := 50
|
||||
|
||||
for {
|
||||
@@ -174,7 +174,7 @@ func (m *Monitor) checkArtistTracks(ctx context.Context, artistID int, artistNam
|
||||
|
||||
// checkArtistAlbums checks for new albums from an artist
|
||||
func (m *Monitor) checkArtistAlbums(ctx context.Context, artistID int, artistName string) {
|
||||
page := 1
|
||||
page := 0
|
||||
pageSize := 50
|
||||
|
||||
for {
|
||||
|
||||
Reference in new issue
Block a user