zS1L3NT / ts-npm-ytmusic-api

A type-safe and basic YouTube Music API wrapper
https://npmjs.com/package/ytmusic-api
GNU General Public License v3.0
70 stars 16 forks source link

[FEATURE]: How do I load the next page in the search api? #37

Open zhaoyuqiqi opened 1 month ago

zhaoyuqiqi commented 1 month ago

Is this feature request related to a problem? If so, please elaborate

No response

Tell me about the feature you are requesting!

const ytmusic = new YTMusic();
const songs = await ytmusic.searchSongs("jay");
console.log(songs.length); // 20

Whether the searchSongs interface has additional parameters to load the next page?I want to load 20-40 songs, but now I only have 0-20 songs.

Additional Information

No response

zS1L3NT commented 1 month ago

For now there isn't a way to paginate... I can work on that feature!

zhaoyuqiqi commented 1 month ago

For now there isn't a way to paginate... I can work on that feature!

I wanted to do it myself. I tried several times but failed.Thank you for your efforts in this regard.I'm looking forward to this feature!