From 5f4c19813a90123ea1adf816018859ef5906c5a9 Mon Sep 17 00:00:00 2001 From: killer069 <65385476+killer069@users.noreply.github.com> Date: Tue, 24 Aug 2021 20:15:13 +0530 Subject: [PATCH] More Playlist Error fix --- play-dl/YouTube/utils/extractor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play-dl/YouTube/utils/extractor.ts b/play-dl/YouTube/utils/extractor.ts index 755b347..a7ce368 100644 --- a/play-dl/YouTube/utils/extractor.ts +++ b/play-dl/YouTube/utils/extractor.ts @@ -112,7 +112,7 @@ export async function playlist_info(url : string) { if(url.search('(\\?|\\&)list\\=') === -1) throw new Error('This is not a PlayList URL') let Playlist_id = url.split('list=')[1].split('&')[0] - if(Playlist_id.length !== 34 || Playlist_id.startsWith('PL')) throw new Error('This is not a PlayList URL') + if(Playlist_id.length !== 34 || !Playlist_id.startsWith('PL')) throw new Error('This is not a PlayList URL') let new_url = `https://www.youtube.com/playlist?list=${Playlist_id}` let body = await url_get(new_url)