You can easily download your own videos of youtube (or even your entire playlsits) through the application youtube-dl
. You can install youtube-dl
from repositories, even if it won't be updated as frequently as needed sometimes, to get sync with youtube way of working. Therefore, you are encouraged to install through the command-line:
sudo apt update && sudo apt install youtube-dl # install programs from repos if you don't have them yet sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl # get latest version from developers site sudo chmod a+rx /usr/local/bin/youtube-dl # fix permissions of the downloaded file sudo youtube-dl -U # update your previous youtube-dl version
You can download your own youtube playlist with:
youtube-dl -ci "https://www.youtube.com/playlist?list=YOURPLAYLISTID" -o "%(title)s-%(id)s.%(ext)s"
Replace YOURPLAYLISTID with your own YouTube playlist id (note it's not your youtube channel ID, but the youtube playlist id). You can get it from the url of a video when shown through it's own playlist. That url might look like:
- https://www.youtube.com/watch?v=guFSSJTjyZI&list=PLM2ch5TKp0OdtMZeqCOJQw6BwJ19VDcj4&index=2
- https://www.youtube.com/playlist?list=PLM2ch5TKp0OdtMZeqCOJQw6BwJ19VDcj4
Therefore, the playlist id is that part after list= and before any ampersand (&) if any.
In this case: PLM2ch5TKp0OdtMZeqCOJQw6BwJ19VDcj4
Therefore, this would be the instruction in the command line:
youtube-dl -ci "https://www.youtube.com/playlist?list=PLM2ch5TKp0OdtMZeqCOJQw6BwJ19VDcj4" -o "%(title)s-%(id)s.%(ext)s"
And if you need in mp4 format only (because your tv doesn't accept some webm or mkv codec files, or whatever other reason), you can add these extra params -f 'bestvideoext=mp4+bestaudioext=m4a/mp4'
:
youtube-dl -ci -o "%(title)s-%(id)s.%(ext)s" -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4' "https://www.youtube.com/playlist?list=PLM2ch5TKp0OdtMZeqCOJQw6BwJ19VDcj4"
If youtube-dl doesn't work for you any more (it did fail for me in 2023-10), you can try installing yt-dlp
from discover app, and launch the command with this program
yt-dlp -ci -o "%(title)s-%(id)s.%(ext)s" -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4' "https://www.youtube.com/playlist?list=PLM2ch5TKp0OdtMZeqCOJQw6BwJ19VDcj4"
Derived from:
There is a nice GUI called youtube-dlg, however, it doesn't seem to be updated as frequently as needed to keep it updated to latest youtube-dl changes (and therefore, with youtube changes).
You might try the GUI Download-DLG, in case it still works for you (if did for me months ago, but not currently, so I had to go to the command line to be able to fetch my own video playlist successfully)
#sudo add-apt-repository ppa:nilarimogard/webupd8 # needed once for youtube-dlg sudo apt update && sudo apt install youtube-dlg # install programs from repos if you don't have them yet # refresh youtube-dl from the commands above so that you have the latest version installed
Derived from:
Alias names for this page:
playlist | playlists | Youtube | YoutubeLists | YoutubeList | Youtube Lists | Youtube List