From ed6c26a3af1c55c23aa3b0c55d254d9b08b13995 Mon Sep 17 00:00:00 2001 From: Vladimir Zagainov Date: Sun, 18 Oct 2026 01:07:04 +0300 Subject: [PATCH] Fix artist page numbering for Yandex API Start page numbering at 1 instead of 0 in checkArtistTracks and checkArtistAlbums. Yandex Music API rejects page=0 with 400 'Parameters requirements are not met'. GetArtistInfo works because it doesn't use pagination. --- internal/monitor/monitor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/monitor/monitor.go b/internal/monitor/monitor.go index b9b283d..102e39c 100644 --- a/internal/monitor/monitor.go +++ b/internal/monitor/monitor.go @@ -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 := 0 + page := 1 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 := 0 + page := 1 pageSize := 50 for {