Change to /api/feed/v2, fix new format with stems, typos #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello!
Since I currently play around with Suno, I noticed that they recently added the data for generating STEMS (pro) into their UI, breaking the predefined classes. So here is a fix for that.
Since I also run into troubles with the pagination / amount of "songs" returned, I changed the endpoint to the
/api/feed/v2
endpoint, giving us "num_of_songs" which helps us iterate through the "pages".I added example code for just this into the
README.md
(edit: 🙈 forgot to mention:
Also added the MetadataHistory Model, so you can identify where a song is coming from (song 1 -> song 2 -> song 3, etc.), and added new example data for the v3.5 metadata/clips structure)
And lastly, i fixed a typo in
check_error
.If there is anything missing let me know and I'll be glad to fix it. :-)
Thanks for your effort making this API (publicly available),
Chris