From d71b762df57d7ea1c614ef47cfeabe63162f8428 Mon Sep 17 00:00:00 2001 From: mdashlw Date: Wed, 19 Oct 2022 00:42:55 +0300 Subject: [PATCH] fix: don't remove "VL" from playlist id (#223) --- src/Innertube.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;