discord-player-youtubei
Advanced tools
Comparing version 1.3.0-alpha.0 to 1.3.0-alpha.1
@@ -103,4 +103,5 @@ import { Track, BaseExtractor, ExtractorStreamable, SearchQueryType, ExtractorSearchContext, ExtractorInfo, Playlist, GuildQueueHistory } from 'discord-player'; | ||
ignoreSignInErrors?: boolean; | ||
innertubeConfigRaw?: Omit<Omit<InnertubeConfig, "retrieve_player">, "visitor_data">; | ||
innertubeConfigRaw?: InnertubeConfig; | ||
trustedTokens?: TrustedTokenConfig; | ||
cookie?: string; | ||
} | ||
@@ -107,0 +108,0 @@ interface AsyncTrackingContext { |
@@ -166,3 +166,4 @@ "use strict"; | ||
retrieve_player: this.options.disablePlayer === true ? false : true, | ||
...this.options.innertubeConfigRaw | ||
...this.options.innertubeConfigRaw, | ||
cookie: this.options.cookie | ||
}; | ||
@@ -169,0 +170,0 @@ if (this.options.trustedTokens) { |
{ | ||
"name": "discord-player-youtubei", | ||
"version": "1.3.0-alpha.0", | ||
"version": "1.3.0-alpha.1", | ||
"description": "An unofficial package to test the use of youtubei in discord-player v6.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -5,2 +5,4 @@ # Discord Player YouTubei | ||
* Warning: the documentation on GitHub is for the edge version of this package. Refer to [this](#something-isnt-working) for more information | ||
## Installation | ||
@@ -92,4 +94,16 @@ | ||
| disablePlayer | boolean | Disable the JavaScript player. Use ANDORID client for streaming when using this | | ||
| innertubeConfigRaw | [InntertubeConfigRaw](https://github.com/LuanRT/YouTube.js/blob/main/src/core/Session.ts#L109) without retrieve_player | Options passed to <Innertube>.create() | | ||
| innertubeConfigRaw | [InntertubeConfigRaw](https://github.com/LuanRT/YouTube.js/blob/main/src/core/Session.ts#L109) | Options passed to <Innertube>.create() | | ||
| trustedTokens | [TrustedTokenConfig](#trustedtokenconfig) | The trusted tokens passed to YouTube to avoid bans | | ||
| cookie | string | The cookies passed to innertube similar to ytdl cookies | | ||
### TrustedTokenConfig | ||
*Rename of `GeneratorReturnData`* | ||
*All properties are required* | ||
| name | type | description | | ||
| ---- | ---- | ----------- | | ||
| visitorData | string | The visitor data of the PoToken | | ||
| poToken | string | The trusted token of the YouTube client | | ||
## Raw Types | ||
@@ -103,6 +117,9 @@ | ||
signOutOnDeactive?: boolean; | ||
streamOptions?: { | ||
useClient?: InnerTubeClient | ||
}; | ||
overrideBridgeMode?: "ytmusic" | "yt" | ||
streamOptions?: StreamOptions; | ||
overrideBridgeMode?: "ytmusic" | "yt"; | ||
disablePlayer?: boolean; | ||
ignoreSignInErrors?: boolean; | ||
innertubeConfigRaw?: Omit<Omit<Omit<InnertubeConfig, "retrieve_player">, "visitor_data">, "cookie">; | ||
trustedTokens?: TrustedTokenConfig; | ||
cookie?: string; | ||
} | ||
@@ -109,0 +126,0 @@ ``` |
50390
895
144