fix: don't remove "VL" from playlist id (#223)

This commit is contained in:
mdashlw
2022-10-19 00:42:55 +03:00
committed by GitHub
parent dc14d3785f
commit d71b762df5

View File

@@ -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;