mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
PlayList ID fixed
This commit is contained in:
@@ -42,10 +42,7 @@ export function yt_validate(url: string): 'playlist' | 'video' | 'search' | fals
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!url.match(playlist_pattern)) return false;
|
if (!url.match(playlist_pattern)) return false;
|
||||||
const Playlist_id = url.split('list=')[1].split('&')[0];
|
else return 'playlist';
|
||||||
if (Playlist_id.length !== 34 || !Playlist_id.startsWith('PL')) {
|
|
||||||
return false;
|
|
||||||
} else return 'playlist';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user