Stream first then spotify

This commit is contained in:
killer069 2021-08-13 21:56:44 +05:30
parent c6cdf5ee6c
commit 1c8c3cebd5
2 changed files with 14 additions and 9 deletions

View File

@ -1 +1,4 @@
//Spotify Work //Spotify Work
import stream from 'stream'
console.log(new stream.PassThrough())

View File

@ -1,12 +1,14 @@
//This File is in testing stage, everything will change in this //This File is in testing stage, everything will change in this
import { playlist_info, video_basic_info, video_info, search } from "./YouTube"; import { playlist_info, video_basic_info, video_info, search } from "./YouTube";
let main = async() => { // let main = async() => {
let time_start = Date.now() // let time_start = Date.now()
let result = await search('Rick Roll') // let result = await search('Rick Roll')
console.log(result[0].url) // console.log(result[0].url)
let time_end = Date.now() // let time_end = Date.now()
console.log(`Time Taken : ${(time_end - time_start)/1000} seconds`) // console.log(`Time Taken : ${(time_end - time_start)/1000} seconds`)
} // }
main() // main()
export var youtube = { playlist_info, video_basic_info, video_info, search }