mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +00:00
fix: don't remove "VL" from playlist id (#223)
This commit is contained in:
@@ -220,7 +220,7 @@ class Innertube {
|
||||
*/
|
||||
async getPlaylist(id: string) {
|
||||
throwIfMissing({ id });
|
||||
const response = await this.actions.browse(`VL${id.replace(/VL/g, '')}`);
|
||||
const response = await this.actions.browse(`VL${id}`);
|
||||
return new Playlist(this.actions, response.data);
|
||||
}
|
||||
|
||||
@@ -252,4 +252,4 @@ class Innertube {
|
||||
}
|
||||
}
|
||||
|
||||
export default Innertube;
|
||||
export default Innertube;
|
||||
|
||||
Reference in New Issue
Block a user