I created a bash script to download videos from Youtube using yt-dlp
I created a bash script to download videos from Youtube using yt-dlp
This will remove all sponsors, download subtitles and view it when you are watching a video. Modify and Share this all over if you like!
Edit: Give credits to this community or Lemmy in general if you are posting this or a modified form (please do share) of this elsewhere. Some popularity would do Lemmy good.
Few requirements:
- You should be using Linux to run it.
- Create a folder named
yt-dlp
in Videos folder or else change the location in the script below. - You should have
yt-dlp
notyoutube-dl
on your system. You can do this bysudo apt install yt-dlp
or use your distro's package installer. - Save this file with any
name
in your home folder (or whichever folder you are you most comfortable with and give it execution permissions bychmod +x name
Debian Pastebin Thanks to folds at debian for making a tor network friendly pastebin. I have noticed that sometimes scripts get corrupted here, so best copy this from pastebin: https://paste.debian.net/1293211/
edit: deleted the codeblock as it was not rendering properly https://i.imgur.com/1lrTcdT.png
You can get the updated code here https://paste.debian.net/1293211/ Just paste it on to your notepad and give it execution permissions.
#edit 1: The program can be improved, if you guys feel like an improvement is needed, copy the entire program modify the parts you think can be made better and paste it in the comments or paste the pastebin link in the comments. I realize there are applications which are gui for yt-dlp but I felt they lacked many options. You can go on the man page, and learn and add attributes to make this script better so that it better suits your needs.
#man page aka github page: yt-dlp