From 7f8d81472897a79fb7f132f68aeca5cd9c992930 Mon Sep 17 00:00:00 2001 From: Killer069 <65385476+killer069@users.noreply.github.com> Date: Fri, 24 Sep 2021 15:56:30 +0530 Subject: [PATCH 1/4] Update README.md --- docs/README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index 665221c..baceb8e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -81,7 +81,13 @@ let data = await search('Rick Roll', { limit: 1, source { spotify : "tracks" } } _This is basic to create a stream from a youtube or soundcloud url._ ```js -let source = await stream("url") // This will create a stream Class. +let source = await stream("url") // This will create a stream Class. Highest Quality + +let source = await stream("url", { quality : 0 }) // Lowest quality + +let source = await stream("url", { quality : 1 }) // Next to Lowest quality. + +let source = await stream("url", { cookie: COOKIE }) //This will create a stream Class and also give cookies. let resource = createAudioResource(source.stream, { inputType : source.type @@ -95,10 +101,13 @@ _This is basic to create a stream from a info [ from [video_info](https://github **Note :** Here, cookies are required only for retrying purposes. ```js - let source = await stream_from_info(info) // This will create a stream Class from video_info or SoundCoudTrack Class. +let source = await stream_from_info(info) // This will create a stream Class from video_info or SoundCoudTrack Class. Highest Quality + +let source = await stream_from_info(info, { quality : 0 }) // Lowest quality +let source = await stream_from_info(info, { quality : 1 }) // Next to Lowest quality. - let source = await stream_from_info(info, { cookie }) //This will create a stream Class and also give cookies if retrying. +let source = await stream_from_info(info, { cookie: COOKIE }) //This will create a stream Class and also give cookies if retrying. let resource = createAudioResource(source.stream, { From 89e17987a5463f82aaf5c92ca7527131588750a3 Mon Sep 17 00:00:00 2001 From: Killer069 <65385476+killer069@users.noreply.github.com> Date: Fri, 24 Sep 2021 16:02:03 +0530 Subject: [PATCH 2/4] Update README.md --- docs/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index baceb8e..ca19ceb 100644 --- a/docs/README.md +++ b/docs/README.md @@ -59,9 +59,11 @@ authorization() //After then you will be asked about type of data you want to cr _This is basic to search with any source._ -**NOTE :-** If no options.source is not specified, then it will default to youtube video search. +**NOTE :-** If options.source is not specified, then it will default to youtube video search. ```js +let data = await search('Rick Roll', { limit : 1 }) // Searches for youtube video + let data = await search('Rick Roll', { limit : 1, source { youtube : "video" } }) // Searches for youtube video let data = await search('Rick Roll', { limit: 1, source { soundcloud : "track" } }) // Searches for spotify track. From 09dfa4b9739b0e8217e23fd26e098668266eac98 Mon Sep 17 00:00:00 2001 From: Killer069 <65385476+killer069@users.noreply.github.com> Date: Fri, 24 Sep 2021 18:12:23 +0530 Subject: [PATCH 3/4] Update README.md --- docs/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index ca19ceb..a64efac 100644 --- a/docs/README.md +++ b/docs/README.md @@ -66,9 +66,9 @@ let data = await search('Rick Roll', { limit : 1 }) // Searches for youtube vide let data = await search('Rick Roll', { limit : 1, source { youtube : "video" } }) // Searches for youtube video -let data = await search('Rick Roll', { limit: 1, source { soundcloud : "track" } }) // Searches for spotify track. +let data = await search('Rick Roll', { limit: 1, source { spotify : "track" } }) // Searches for spotify track. -let data = await search('Rick Roll', { limit: 1, source { spotify : "tracks" } }) // Searches for soundcloud track. +let data = await search('Rick Roll', { limit: 1, source { soundcloud : "tracks" } }) // Searches for soundcloud track. ``` ### Stream From e4015dbcf7f17cc9c893e436d7c32402bca4c5b6 Mon Sep 17 00:00:00 2001 From: Killer069 <65385476+killer069@users.noreply.github.com> Date: Fri, 24 Sep 2021 18:13:30 +0530 Subject: [PATCH 4/4] Update README.md --- docs/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index a64efac..1ea6ed9 100644 --- a/docs/README.md +++ b/docs/README.md @@ -64,11 +64,11 @@ _This is basic to search with any source._ ```js let data = await search('Rick Roll', { limit : 1 }) // Searches for youtube video -let data = await search('Rick Roll', { limit : 1, source { youtube : "video" } }) // Searches for youtube video +let data = await search('Rick Roll', { limit : 1, source : { youtube : "video" } }) // Searches for youtube video -let data = await search('Rick Roll', { limit: 1, source { spotify : "track" } }) // Searches for spotify track. +let data = await search('Rick Roll', { limit: 1, source : { spotify : "track" } }) // Searches for spotify track. -let data = await search('Rick Roll', { limit: 1, source { soundcloud : "tracks" } }) // Searches for soundcloud track. +let data = await search('Rick Roll', { limit: 1, source : { soundcloud : "tracks" } }) // Searches for soundcloud track. ``` ### Stream