mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-06 04:32:40 +00:00
search small bug
This commit is contained in:
@@ -13,7 +13,8 @@ enum SearchType {
|
||||
|
||||
export async function search(search :string, options? : ParseSearchInterface): Promise<(Video | Channel | PlayList)[]> {
|
||||
let url = 'https://www.youtube.com/results?search_query=' + search.replaceAll(' ', '+')
|
||||
if(!options || options.type) options = { type : "video" }
|
||||
if(!options) options = { type : "video"}
|
||||
if(!options.type) options.type = "video"
|
||||
if(!url.match('&sp=')){
|
||||
url += '&sp='
|
||||
switch(options?.type){
|
||||
|
||||
Reference in New Issue
Block a user