diff --git a/src/Innertube.ts b/src/Innertube.ts index 62c0ce76..a32ffb25 100644 --- a/src/Innertube.ts +++ b/src/Innertube.ts @@ -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; \ No newline at end of file +export default Innertube;