PlayList ID fixed
This commit is contained in:
parent
10d21bdb88
commit
511c919366
@ -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';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user