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.

you are viewing a single comment's thread
view the rest of the comments
[–] 24 points 2 years ago* (last edited 2 years ago) (3 children)

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.
  • source
  • hideshow 6 child comments
  • [–] 13 points 2 years ago (1 child)

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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 years ago (1 child)

    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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 2 years ago

    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

  • source
  • parent