Questions tagged [yt-dlp]

yt-dlp is a command-line program, written in Python, that lets you easily download videos and audio from more than a thousand websites. It is a youtube-dl fork based on the now inactive youtube-dlc.

100 questions
-1
votes
0 answers

My discord music bot doesn't work because of some error with to yt-dlp

I'm trying to get the discord bot to play the music I input with a link (in the app command) but it always responds with unable to extract initial data which I don't know the meaning of. I've tried many different videos and I have had the same error…
slin
  • 1
  • 1
-1
votes
1 answer

Removing duplicate whitespace in title when using yt-dlp

I have a set of videos I'm trying to download but they often have large quantities of whitespace in the video title. However, I want to have the titles named correctly in the downloaded filename (just without the additional whitespace). I think this…
Joe.S
  • 5
  • 2
-1
votes
1 answer

How to convert $argv in to a single string in the fish shell

I am writing a fish function to play the first result of a search term as audio using yt-dlp and mpv. The problem is that I need the search term as a single string, whereas $argv is an array of strings. How do I convert an array of strings to a…
berinaniesh
  • 198
  • 13
-1
votes
1 answer

Discord mp3 downloader security concerns

So i'm writing a python discord bot that uses yt-dlp to download a song then send it to a discord channel. Problem is, I need to save the mp3 to a path to reupload it, but i think my code would be vulnerable to an attack where someone does a youtube…
-1
votes
1 answer

Error adding playlist in yt-dlp discord.py

My bot is on Heroku. [youtube:tab] PL4fGSI1pDJn5kI81J1fYWK5eZRl1zJ5kM: Downloading webpage WARNING: [youtube:tab] unable to extract yt initial data; please report this issue on https://github.com/yt-dlp/yt-dlp , filling out the "Broken site" issue…
babykiwii
  • 11
  • 2
-3
votes
1 answer

Can I search music.youtube.com using youtube-dl / yt-dlp?

I am writing a discord music bot. If I do $ yt-dlp ytsearch:"some query" yt-dlp searches youtube.com. It'd be better if I can directly search music.youtube.com than youtube.com (since I can get the songs directly). Can I search music.youtube.com…
berinaniesh
  • 198
  • 13
-3
votes
1 answer

Error: "No such option: -l" when running yt-dlp

I have adapted code from this Stack Overflow answer to try to download a video and use ffmpeg to alter it yt-dlp "https://www.youtube.com/watch?v=PtkqwslbLY8" -o ffmpeg -i in.mp4 -vcodec libx264 -crf 23 -preset fast -profile:v baseline \ -level…
garson
  • 1,505
  • 3
  • 22
  • 56
1 2 3 4 5 6
7