conradludgate / terraform-provider-spotify

Terraform provider for spotify
https://registry.terraform.io/providers/conradludgate/spotify/latest
MIT License
494 stars 38 forks source link

spotify_search_track limit #37

Open mcshanek opened 2 years ago

mcshanek commented 2 years ago

I love this provider and had so much fun using it! I am curious if there is a hard limit to the amount of songs I can pull using the spotify_search_track by_artist data block. It seems like that limit might be 50 right now, but I am trying to pull every song from a particular artist. Let me know if I am missing something or if there is a fix. Thanks!

conradludgate commented 2 years ago

I think there is a limit of 50, enforced by Spotify. I was trying to think of a way to support pagination somehow, but I'm not quite sure if it works within the declarative style of terraform.

Otherwise we could updated the search datasource code to perform batch the requests

QuentinBtd commented 2 years ago

Hello @conradludgate,

I will try to take some time to understand your code and see how we could go beyond this limit of 50 tracks per search.

I am a newbie in go, but it could be a good challenge for me 😄

(And I need this feature to automatically add news tracks of multiples artists in a big a playlist of epic style musics 🔥 )