New youtube playlist downloader

SeeMinusMinus@lemmy.world to Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com – 113 points –
youload
gitea.com

I wanted a simple app for downloading youtube playlists but I couldn't find one so I made one. There is still lots I want to do with it but for now it does everything I need.

16

You are viewing a single comment

I was going to suggest yt-dlp, but this seems to be for android... right? In that case, I don't know if yt-dlp works there.

Anyway, for those on PCs, you can use yt-dlp "PLAYLIST_URL".

Some useful options:

  • --download-archive videos.txt: this will keep track of downloaded files in case you want to interrupt an continue later. You can change the filename videos.txt to whatever you want.
  • -R infinite --file-access-retries infinite --fragment-retries infinite --retry-sleep http:exp=1:20 --retry-sleep fragment:exp=1:20 --retry-sleep file_access:exp=1:20 --retry-sleep extractor:exp=1:20: infinite retries for different error types, for those with unreliable connections.
  • -o "%%(playlist_index)s - %%(title)s.%%(id)s.%%(ext)s": output file format
  • --cookies cookies.txt: if it's a private list, you will need to provide your (yt-logged-in-)browser cookies. See cookies.txt add-on.

Using Termux you can get yt-dlp installed and running on Android

Installing yt-dlp is a little more finicky than just installing the pip module within Termux, but I was able to use this to get it set up:

https://github.com/rofrol/termux-yt-dlp

I actually used pipx to get yt-dlp into Termux.

  1. Installed python and python-pip via pkg install python python-pip
  2. Installed pipx via pip install pipx
  3. Finally installed yt-dlp via pipx install yt-dlp

At least that's how it worked for me