diff --git a/play-dl/YouTube/stream.ts b/play-dl/YouTube/stream.ts index 62a0040..0a17c25 100644 --- a/play-dl/YouTube/stream.ts +++ b/play-dl/YouTube/stream.ts @@ -39,7 +39,7 @@ export type YouTubeStream = Stream | LiveStream; /** * Stream command for YouTube * @param url YouTube URL - * @param options lets you add quality, cookie, proxy support for stream + * @param options lets you add quality for stream * @returns Stream class with type and stream for playing. */ export async function stream(url: string, options: StreamOptions = {}): Promise { @@ -49,7 +49,7 @@ export async function stream(url: string, options: StreamOptions = {}): Promise< /** * Stream command for YouTube using info from video_info or decipher_info function. * @param info video_info data - * @param options lets you add quality, cookie, proxy support for stream + * @param options lets you add quality for stream * @returns Stream class with type and stream for playing. */ export async function stream_from_info(info: InfoData, options: StreamOptions = {}): Promise { diff --git a/play-dl/YouTube/utils/extractor.ts b/play-dl/YouTube/utils/extractor.ts index 1ad83ec..15876c0 100644 --- a/play-dl/YouTube/utils/extractor.ts +++ b/play-dl/YouTube/utils/extractor.ts @@ -91,24 +91,11 @@ export function extractID(url: string): string { * const video = await play.video_basic_info('youtube video url') * * const res = ... // Any https package get function. - * const video = await play.video_basic_info(res.body, { htmldata : true }) * - * const video = await play.video_basic_info('youtube video url', { proxy : [{ - host : "IP or hostname", - port : 8080, - authentication: { - username: 'username'; - password: 'very secret'; - } - }] }) // Authentication is optional. - - // OR - - const video = await play.video_basic_info('youtube video url', { proxy : ['url'] }) + * const video = await play.video_basic_info(res.body, { htmldata : true }) * ``` * @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 Video Basic Info {@link InfoData}. */ @@ -242,24 +229,11 @@ function parseSeconds(seconds: number): string { * const video = await play.video_info('youtube video url') * * const res = ... // Any https package get function. - * const video = await play.video_info(res.body, { htmldata : true }) * - * const video = await play.video_info('youtube video url', { proxy : [{ - host : "IP or hostname", - port : 8080, - authentication: { - username: 'username'; - password: 'very secret'; - } - }] }) // Authentication is optional. - - // OR - - const video = await play.video_info('youtube video url', { proxy : ['url'] }) + * const video = await play.video_info(res.body, { htmldata : true }) * ``` * @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 InfoData}. */ @@ -290,24 +264,10 @@ export async function decipher_info(data: InfoData) { * const playlist = await play.playlist_info('youtube playlist url') * * const playlist = await play.playlist_info('youtube playlist url', { incomplete : true }) - * - * const playlist = await play.playlist_info('youtube playlist url', { proxy : [{ - host : "IP or hostname", - port : 8080, - authentication: { - username: 'username'; - password: 'very secret'; - } - }] }) // Authentication is optional. - - // OR - - const playlist = await play.playlist_info('youtube playlist url', { proxy : ['url'] }) * ``` * @param url Playlist URL * @param options Playlist Info Options * - `boolean` incomplete : If set to true, parses playlist with hidden videos. - * - `Proxy[]` proxy : sends data through a proxy * * @returns YouTube Playlist */ diff --git a/play-dl/index.ts b/play-dl/index.ts index 6bab669..cdadf95 100644 --- a/play-dl/index.ts +++ b/play-dl/index.ts @@ -103,7 +103,6 @@ import { DeezerAlbum, DeezerPlaylist, DeezerTrack } from './Deezer/classes'; * @param options * * - `number` quality : Quality number. [ 0 = Lowest, 1 = Medium, 2 = Highest ] - * - `Proxy[]` proxy : sends data through a proxy * - `boolean` htmldata : given data is html data or not * @returns A {@link YouTubeStream} or {@link SoundCloudStream} Stream to play */