• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Issue with the latest youtube-dl

rikkuz

Member
Since no one seem to actually pay attention to this even though it's an actual and critic issue, I will now explain how after some work I managed to get it running correctly in docker.

What I did was to attach to the executing container and once inside it, install python3: since the image isn't even shipped with it but just with python2.7, useless for this purpose.

Once python3 is installed you download the latest executable of yt-dlp, the fork which actually works (can't say the same for youtube-dl), you can find the link in my latest post.

Then you point the bot's config.ini to this new executable, which you can put in /usr/local/bin/yt-dlp.

Once done just give a docker restart and you can finally enjoy a working music bot that does not download corrupted videos at 50kB/s :)
hi, thank you for the solution! could you write a beginner's guide on how to make this solution? I installed python3, but i don't know how to continue..
 
Last edited:

rikkuz

Member
Outside of docker? Even easier ;-) Just download the latest release of youtube dl-p as I linked, and just be sure to have python3 installed on your machine. After that you just need to point the config.ini to the new yt-dlp and that's it!
what do you mean with "you just need to point the config.ini to the new yt-dlp and that's it!"?
 

MauriceR

Well-Known Member
Contributor
what do you mean with "you just need to point the config.ini to the new yt-dlp and that's it!"?
Well, it means just that.
Edit for example
Code:
YoutubeDLPath = "/usr/local/bin/youtube-dl"
to
Code:
YoutubeDLPath = "/usr/local/bin/yt-dlp"
.
But make sure that the file is also named "yt-dlp". If it's named "youtube-dlp" or something else you need to of course change it to "youtube-dlp" in the config.ini
 

rikkuz

Member
Well, it means just that.
Edit for example
Code:
YoutubeDLPath = "/usr/local/bin/youtube-dl"
to
Code:
YoutubeDLPath = "/usr/local/bin/yt-dlp"
.
But make sure that the file is also named "yt-dlp". If it's named "youtube-dlp" or something else you need to of course change it to "youtube-dlp" in the config.ini
Thank you for the reply. I have already tried but it doesn't work (the error in this case is "youtube-dl not available"). I think you have to do something with Python before, but i don't know
 

Lolpik

Member
Thank you for the reply. I have already tried but it doesn't work (the error in this case is "youtube-dl not available"). I think you have to do something with Python before, but i don't know
Try this and then restart
Code:
chmod a+rx /usr/local/bin/yt-dlp
 

xDyego

Member
Since no one seem to actually pay attention to this even though it's an actual and critic issue, I will now explain how after some work I managed to get it running correctly in docker.

What I did was to attach to the executing container and once inside it, install python3: since the image isn't even shipped with it but just with python2.7, useless for this purpose.

Once python3 is installed you download the latest executable of yt-dlp, the fork which actually works (can't say the same for youtube-dl), you can find the link in my latest post.

Then you point the bot's config.ini to this new executable, which you can put in /usr/local/bin/yt-dlp.

Once done just give a docker restart and you can finally enjoy a working music bot that does not download corrupted videos at 50kB/s :)
Hi, could you help me? I did the entire process described here, but the error continues: "youtube-dl not available"
 

CubE135

Donor
is awesome!
Contributor
What I did was to attach to the executing container and once inside it, install python3: since the image isn't even shipped with it but just with python2.7, useless for this purpose.
Could you by chance give me instructions on how to install python3 in my sinusbot docker container? I tried but failed doing so :p
 

CubE135

Donor
is awesome!
Contributor
Mhhh this is weird. I am sorry but i tested it on a linux machine so i have no clue on Windows right now, but i will keep investigating on this.
I Alos have this exact problem. Just downloaded yt-dlp and set the path in the config. Now i get this error:
1639601717139.png
 

larsstr

Member
Thanks for the tip! With yt-dlp all my problems have been solved for now. Especially with long Youtube videos (e.g. https://www.youtube.com/watch?v=P95yWWHzMkc) the connection broke after a few minutes or the bot jumped randomly through the song. I have adjusted the parameters of the config for yt-dl, as often recommended here in the forum, but unfortunately no success. Now I have replaced yt-dl with yt-dlp and it works fine! So it was indeed the download rate limitation (that seems logical for long videos).

Only I have not yet figured out how other services, such as soundcloud can be streamed with !yt. But I will investigate further.
 

RazvanGFX

Member
I also got a problem with that. I tried to use the "Youtube-Search" Scripts and i get this erros. I looked up on google and tried everything and still not working.1641834971314.png1641834978349.png

Also when i use regular !yt [ !yt url ] works but it works so slowly. (Already used -echo '--force-ipv4' > /etc/youtube-dl.conf )
 
Top