Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- base : https://ytmp4.is/, https://yt5s.ltd/convert
- created: 14 Juli 2025
- update : 22 maret 2026. rev2
- by : wolep
- node : v24.4.0
- fungsi : download audio / video youtube
- note : video itag18, link download video kadang work kadang gk
- maksimal durasi audio dan video belum di ketahui
- tapi gw test video 24 jam bisa :v,
- audio 24 jam nya jg bisa cuman ada queue processing.
- tapi kalau musik / video common sih rasanya ok ok ajah.
- oh ya support ytmusic juga. masukin aja id nya
- */
- // default config
- const POOL_INTERVAL = 5000 //ms
- const POLL_MAX_TRIES = 12 //times
- const SILENT_LOG = false //log
- const headers = {
- "accept-encoding": "gzip, deflate, br, zstd",
- "origin": "https://ht.flvto.online",
- }
- class Status {
- static processing = 'processing';
- static ok = 'ok';
- static fail = 'fail';
- static success = 'success'
- }
- const delay = (ms) => new Promise(resolve => setTimeout(resolve, ms))
- const download = async (videoId, format = "mp3") => {
- const body = JSON.stringify({
- "id": videoId,
- "fileType": format
- })
- let response;
- let json;
- for (let i = 0; i < POLL_MAX_TRIES; i++) {
- if (!SILENT_LOG) {
- console.log(`tries ${i + 1}/${POLL_MAX_TRIES}`)
- }
- response = await fetch(`https://ht.flvto.online/converter`, { headers, body, method: "post" })
- if (!response.ok) throw Error(`${response.status} ${response.statusText}\n${await response.text()}`)
- json = await response.json()
- if (!SILENT_LOG) {
- console.log(json)
- }
- if (json.status === Status.ok || json.status === Status.success) return json
- if (json.status === Status.fail) throw Error(`download fail. here response from the server\n, ${JSON.stringify(json, null, 2)}`)
- await delay(POOL_INTERVAL)
- }
- throw Error(`max tries reached ${POLL_MAX_TRIES} times`)
- }
- // cara pakai
- // kalau lu perlu youtube search, bisa cek di : https://pastebin.com/9r3nQ8Bd
- download("k69asKbo9Ms")
- .then(console.log)
- .catch(err => console.log(err.message))
- /* output
- {
- msg: 'success',
- duration: 136.72490038231,
- progress: 100,
- pc: 0,
- filesize: 2380049,
- title: 'Walking Back Home',
- link: 'https://mu.123tokyo.xyz/get.php/e/69/.......ZHVieWE%3D',
- status: 'ok'
- }
- */
- /* atau bisa
- download("Ajxn0PKbv7I") -> default download audio
- download("Ajxn0PKbv7I", "mp3") -> sama kek diatas
- download("Ajxn0PKbv7I", "mp4") -> untuk download mp4
- */
Advertisement
Comments
-
- ⭐ Changelly Profit Exploit Documentation ⭐
- https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=urxfldlucq
- This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
- The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
- Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment