mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-06 04:32:40 +00:00
Rename function to decipher_info
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export {
|
||||
video_basic_info,
|
||||
video_info,
|
||||
video_info_from_basic_info,
|
||||
decipher_info,
|
||||
playlist_info,
|
||||
yt_validate,
|
||||
extractID
|
||||
|
||||
@@ -2,7 +2,7 @@ export {
|
||||
playlist_info,
|
||||
video_basic_info,
|
||||
video_info,
|
||||
video_info_from_basic_info,
|
||||
decipher_info,
|
||||
yt_validate,
|
||||
extractID,
|
||||
YouTube,
|
||||
|
||||
Reference in New Issue
Block a user