Questions tagged [ytdl]

ytdl-core is a YouTube downloading module. Written with only Javascript and a node-friendly streaming interface. Use this tag for questions about the usage of ytdl-core

ytdl-core is a YouTube downloading module. Written with only Javascript and a node-friendly streaming interface.

YouTube is an American online video-sharing platform

145 questions
0
votes
1 answer

I am making a discord music bot with node.js it is kinda working but not joining the vc or playing the song

So the bot gives the voice channel and gives a link warning. However, it doesn't play the song or joins the voice channel. This is the code: client.on('message', message => { let args = message.content.substring(prefix.length).split(" "); …
0
votes
1 answer

Discord.js ytdl Error: input stream: Status code: 416

I have a music Discord bot using ytdl and occasionally, the song would randomly stop and this error would be outputted: Error: input stream: Status code: 416 Here is my code for my playSong function static playSong(queue, message) { const…
lw_101
  • 15
  • 1
  • 6
0
votes
1 answer

Nodejs: Avoid automatically adding backslash in fs.createWriteStream function

I am exploring ytdl-core library to download youtube videos and works fine for me. The problem is when I try to download a video that has a single quote in the title, I am getting the following error from fs library. { [Error: ENOENT: no such file…
0
votes
1 answer

Promise Rejection when fetching video url in discord.js and using the Youtube Api

Promises with Youtube API Requests I'm currently making a discord bot in discord.js, and I am trying to make a music function. Now I know this function works as I have tested it by giving it a set video URL. I recently tried implementing support for…
0
votes
1 answer

Random Error [ERR_INVALID_ARG_TYPE] when bot plays music

I have a weird problem, I get this error at random and it occurs when the bot tries to play music that has been added recently or has been in the queue. You could even then play the same music again and wouldn't get this error. This is the error I…
Anej
  • 100
  • 10
-1
votes
2 answers

Java Program does not find paths when used in .jar executable

I am facing an issue when it comes to my Java application. The app downloads Music from Youtube using yt-dlp, it is basically a GUI version of yt-dlp. The issue I have is only present on MacOs, it works as intended on Windows. Here is a snippet of…
-1
votes
1 answer

Getting CORS while using YTDL core in reactjs

I have this simple component that lists all the available formats along with their mime type. I have used ytdl and ytdl-core in my react app. Here is the what I have tried. import React from 'react'; import ytdl from 'ytdl-core'; const…
Bhaumik Bhatt
  • 446
  • 8
  • 21
-1
votes
2 answers

Play all songs in a queue

This is the code that I have: @commands.command(pass_context=True, aliases= ["aq"]) async def add_queue(self, ctx, *, url): a = ctx.message.guild.id b = servers[a] global queue try: b[len(b)] = url user =…
xBatmanx
  • 80
  • 7
-1
votes
1 answer

App not compatible with buildpack: https://github.com/fent/node-ytdl-core.git

Im trying to make a discord.js bot and i got to implementing music playing into it. But since i have it hosted on Heroku i needed to install the https://github.com/fent/node-ytdl-core.git buildpack but i get this error: Build succeeded! -----> App…
1 2 3
9
10