this post was submitted on 12 Nov 2023
113 points (97.5% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

54424 readers
403 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder

📜 c/Piracy Wiki (Community Edition):


💰 Please help cover server costs.

Ko-Fi Liberapay
Ko-fi Liberapay

founded 1 year ago
MODERATORS
 

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
[–] Crul@lemm.ee 24 points 11 months ago* (last edited 11 months ago) (5 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.
[–] itsAllDigital@feddit.de 13 points 11 months ago (1 children)

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

[–] SatyrSack@lemmy.one 3 points 11 months ago (1 children)

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

[–] itsAllDigital@feddit.de 2 points 11 months 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

load more comments (3 replies)