feat(ytmusic): add music#getPlaylist() (#131)

* add music#getPlaylist()
* fix: lint errors
This commit is contained in:
patrickkfkan
2022-08-11 01:11:31 +08:00
committed by GitHub
parent dc79b19d56
commit 9b4d86b81f
6 changed files with 136 additions and 23 deletions

View File

@@ -62,6 +62,11 @@ describe('YouTube.js Tests', () => {
const playlist = await this.session.getPlaylist('PLLw0AzOz95FU7w2juhPECP9NyGhbZmz_t', { client: 'YOUTUBE' });
expect(playlist.items.length).toBeLessThanOrEqual(100);
});
it('Should retrieve playlist with YouTube Music', async () => {
const playlist = await this.session.music.getPlaylist('PLVbEymL-83SyVXXqT7fYX5sEvELvyGjL7');
expect(playlist.items.length).toBeLessThanOrEqual(100);
});
it('Should retrieve home feed', async () => {
const homefeed = await this.session.getHomeFeed();