Some docs changes
This commit is contained in:
parent
66f2eb9c8f
commit
9a2289353a
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "play-dl",
|
"name": "play-dl",
|
||||||
"version": "1.4.4",
|
"version": "1.4.5",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "play-dl",
|
"name": "play-dl",
|
||||||
"version": "1.4.4",
|
"version": "1.4.5",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^16.9.4",
|
"@types/node": "^16.9.4",
|
||||||
|
|||||||
@ -210,7 +210,6 @@ export async function video_basic_info(url: string, options: InfoOptions = {}):
|
|||||||
*
|
*
|
||||||
* @param url YouTube url or ID or html body data
|
* @param url YouTube url or ID or html body data
|
||||||
* @param options Video Info Options
|
* @param options Video Info Options
|
||||||
* - `Proxy[]` proxy : sends data through a proxy
|
|
||||||
* - `boolean` htmldata : given data is html data or not
|
* - `boolean` htmldata : given data is html data or not
|
||||||
* @returns Deciphered Video Info {@link StreamInfoData}.
|
* @returns Deciphered Video Info {@link StreamInfoData}.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -30,6 +30,19 @@ interface tokenOptions {
|
|||||||
* iv> Useragents :- array of string.
|
* iv> Useragents :- array of string.
|
||||||
*
|
*
|
||||||
* locally in memory.
|
* locally in memory.
|
||||||
|
*
|
||||||
|
* Example :
|
||||||
|
* ```ts
|
||||||
|
* play.setToken({
|
||||||
|
* youtube : {
|
||||||
|
* cookie : "Your Cookies"
|
||||||
|
* }
|
||||||
|
* }) // YouTube Cookies
|
||||||
|
*
|
||||||
|
* play.setToken({
|
||||||
|
* useragent: ['Your User-agent']
|
||||||
|
* }) // Use this to avoid 429 errors.
|
||||||
|
* ```
|
||||||
* @param options {@link tokenOptions}
|
* @param options {@link tokenOptions}
|
||||||
*/
|
*/
|
||||||
export function setToken(options: tokenOptions) {
|
export function setToken(options: tokenOptions) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user