Fix artist page numbering for Yandex API
CI/CD / test (push) Successful in 11m45s
CI/CD / build (push) Successful in 10m27s
CI/CD / docker (push) Successful in 2m58s

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.
This commit is contained in:
Mrixs committed 2026-10-18 01:07:04 +03:00
1 parent 6ec39da5da
commit ed6c26a3af
1 file changed
+2 -2
+2 -2
View File
@@ -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 {