From 511c9193662be701b3f0b57ce346c76a82b6fc5c Mon Sep 17 00:00:00 2001 From: killer069 <65385476+killer069@users.noreply.github.com> Date: Mon, 11 Oct 2021 11:51:47 +0530 Subject: [PATCH] PlayList ID fixed --- play-dl/YouTube/utils/extractor.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/play-dl/YouTube/utils/extractor.ts b/play-dl/YouTube/utils/extractor.ts index 12b8250..6078620 100644 --- a/play-dl/YouTube/utils/extractor.ts +++ b/play-dl/YouTube/utils/extractor.ts @@ -42,10 +42,7 @@ export function yt_validate(url: string): 'playlist' | 'video' | 'search' | fals } } else { if (!url.match(playlist_pattern)) return false; - const Playlist_id = url.split('list=')[1].split('&')[0]; - if (Playlist_id.length !== 34 || !Playlist_id.startsWith('PL')) { - return false; - } else return 'playlist'; + else return 'playlist'; } } /**