*** Download from YouTube by drag n' drop url links ***
=================================================================
Update 2022-12-19, fixed that when the video "id" starts with a "-" (dash) that downloading didn't work.
Replaced attachment ytdl-dnd below.
----------------------------------------------------------
Note ytdl-dnd makes use of youtube-dl, which hasn't been updated for a year, download speed is very slow.
There's a fork of youtube-dl yt-dlp (regularly updated) which fixes that problem.
Downside may be that it works only with python3 (not with python2).
Attached below also ytdlp-dnd which makes use of yt-dlp instead of youtube-dl
To download and install yt-dlp, from terminal:
Code: Select all
curl -k -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
chmod a+rx /usr/local/bin/yt-dlp
=================================================================
Here's ytdl-dnd script attached, running the script there will appear a small box in the upper left corner, drag n' drop youtube links onto it to download a video.
(see demo, animated .gif below)
Remove fake .gz from attached file: ytdl-dnd.gz and make executable:
Code: Select all
chmod +x ytdl-dnd
Required to have installed: yad, youtube-dl, python2 or python3 (for youtube-dl) and (optional) ffmpeg.
Download yad v0.40 pet packages, see here: viewtopic.php?p=9063#p9063
If not already installed youtube-dl, install:
Code: Select all
curl -L https://youtube-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
chmod a+rx /usr/local/bin/youtube-dl # make executable
NOTE: On very new systems, e.g. FossaPup, python will probably be installed, but /usr/bin/python may not exist (only /usr/bin/python3)
Then youtube-dl won't work because it looks for /usr/bin/python, to fix, make a symlink python to python3:
Code: Select all
cd /usr/bin; ln -s python3 python
For quality choices, except "Medium" and "High", ffmpeg is required to be installed.
(for merging Audio/Video)
Usage is easy, just drag n' drop any youtube link onto the little box and make your choices for quality and download location:
Fred