-
-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Other changes: - Renamed "getShortsWatchItem" to "getShortsVideoInfo". - Fixed `ShortFormVideoInfo`. This never worked for me ever since it was introduced. Turned out it was just implemented incorrectly. - Moved `basic_info` extraction to `MediaInfo`. Less of a pain to maintain as we only have to modify one file. - Removed unneeded tsdoc comments. - Fixed `Innertube#getStreamingData()`. Now it actually returns a deciphered format. - Simplified some types.
- Loading branch information
Showing
52 changed files
with
361 additions
and
556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { IReelItemWatchRequest, ReelItemWatchEndpointOptions } from '../../../types/index.js'; | ||
|
||
export const PATH = '/reel/reel_item_watch'; | ||
|
||
/** | ||
* Builds a `/reel/reel_watch_sequence` request payload. | ||
* @param opts - The options to use. | ||
* @returns The payload. | ||
*/ | ||
export function build(opts: ReelItemWatchEndpointOptions): IReelItemWatchRequest { | ||
return { | ||
disablePlayerResponse: false, | ||
playerRequest: { | ||
videoId: opts.video_id, | ||
params: opts.params ?? 'CAUwAg%3D%3D' | ||
}, | ||
params: opts.params ?? 'CAUwAg%3D%3D', | ||
client: opts.client | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * as WatchEndpoint from './WatchEndpoint.js'; | ||
export * as WatchSequenceEndpoint from './WatchSequenceEndpoint.js'; | ||
export * as ReelItemWatchEndpoint from './ReelItemWatchEndpoint.js'; | ||
export * as ReelWatchSequenceEndpoint from './ReelWatchSequenceEndpoint.js'; |
Oops, something went wrong.