parseIncomplete is now optional

This commit is contained in:
killer069
2021-08-24 21:30:48 +05:30
parent 7f827d6085
commit ca29a91e07
3 changed files with 4 additions and 4 deletions

View File

@@ -107,7 +107,7 @@ async function parseM3U8(m3u8_data : string, formats : any[]): Promise<any[]>{
return formats
}
export async function playlist_info(url : string, parseIncomplete : boolean) {
export async function playlist_info(url : string, parseIncomplete : boolean = false) {
if (!url || typeof url !== "string") throw new Error(`Expected playlist url, received ${typeof url}!`);
if(url.search('(\\?|\\&)list\\=') === -1) throw new Error('This is not a PlayList URL')