Rename function to decipher_info

This commit is contained in:
absidue
2021-10-17 21:41:16 +02:00
parent f1be72088f
commit 75f475ef4b
5 changed files with 6 additions and 6 deletions

View File

@@ -85,7 +85,7 @@ export async function stream(url: string, options: StreamOptions = {}): Promise<
);
}
/**
* Stream command for YouTube using info from video_info or video_info_from_basic_info function.
* 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
* @returns Stream class with type and stream for playing.

View File

@@ -182,7 +182,7 @@ export async function video_info(url: string, options: InfoOptions = {}) {
* @param data basic_video_info data
* @returns Data containing video_details, LiveStreamData and formats of video url.
*/
export async function video_info_from_basic_info(data: InfoData) {
export async function decipher_info(data: InfoData) {
if (data.LiveStreamData.isLive === true && data.LiveStreamData.hlsManifestUrl !== null) {
return data;
} else if (data.format[0].signatureCipher || data.format[0].cipher) {

View File

@@ -1,7 +1,7 @@
export {
video_basic_info,
video_info,
video_info_from_basic_info,
decipher_info,
playlist_info,
yt_validate,
extractID

View File

@@ -2,7 +2,7 @@ export {
playlist_info,
video_basic_info,
video_info,
video_info_from_basic_info,
decipher_info,
yt_validate,
extractID,
YouTube,