Spotify Work + Error Language = EN - US

This commit is contained in:
killer069
2021-09-09 12:11:11 +05:30
parent 139b540a2c
commit 0b4979f009
9 changed files with 211 additions and 28 deletions

View File

@@ -27,7 +27,9 @@ export async function search(search :string, options? : ParseSearchInterface): P
break
}
}
let body = await url_get(url)
let body = await url_get(url, {
headers : {'accept-language' : 'en-US,en-IN;q=0.9,en;q=0.8,hi;q=0.7'}
})
let data = ParseSearchResult(body, options)
return data
}