diff --git a/package-lock.json b/package-lock.json index 84d3fff..55c4a0b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "play-dl", - "version": "1.4.4", + "version": "1.4.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "play-dl", - "version": "1.4.4", + "version": "1.4.5", "license": "GPL-3.0", "devDependencies": { "@types/node": "^16.9.4", diff --git a/play-dl/YouTube/utils/extractor.ts b/play-dl/YouTube/utils/extractor.ts index f5d6266..1d022fa 100644 --- a/play-dl/YouTube/utils/extractor.ts +++ b/play-dl/YouTube/utils/extractor.ts @@ -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 options Video Info Options - * - `Proxy[]` proxy : sends data through a proxy * - `boolean` htmldata : given data is html data or not * @returns Deciphered Video Info {@link StreamInfoData}. */ diff --git a/play-dl/token.ts b/play-dl/token.ts index b302329..d2074a0 100644 --- a/play-dl/token.ts +++ b/play-dl/token.ts @@ -30,6 +30,19 @@ interface tokenOptions { * iv> Useragents :- array of string. * * 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} */ export function setToken(options: tokenOptions) {