fent / node-ytdl-core

YouTube video downloader in javascript.
MIT License
4.46k stars 784 forks source link

Can ytdl-core download youtube short ? #1156

Open officialdittaz opened 1 year ago

officialdittaz commented 1 year ago

😄

shakeebshams commented 1 year ago

Nope

Jackpate-2003 commented 1 year ago

Yes! Enter the video ID as input: // https://www.youtube.com/shorts/RmB45hxCmm0 ytdl('RmB45hxCmm0');

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Ma110w commented 3 months ago

just change "/shorts/" to "/watch/" 👍

DanielBUBU commented 1 month ago

just change "/shorts/" to "/watch/" 👍

nah, you must use /shorts/ when checking validate

const ytdl = require("ytdl-core");
console.log(ytdl.validateURL(("https://youtube.com/watch/ct4HJVC9A4Y"))) //return false
console.log(ytdl.validateURL(("https://youtube.com/shorts/ct4HJVC9A4Y"))) //return true

and stream will says no video id found or emit a 403 error when try to use it (403 might bcs it's completely broken now)