made it so i just click file and paste YouTube url

Linux is amazing

#! /usr/bin/bash
echo "Enter a url"
read a

yt-dlp -x $a
you are viewing a single comment's thread
view the rest of the comments
[–] 8 points 8 months ago

Guess we're sharing scripts now. I have a script that downloads playlists as MP3s and keep an archive.

#!/usr/bin/env sh

browser_cookies="firefox:1cvnyph7.YouTube TV"

download() {
	url="https://www.youtube.com/playlist?list=%241"
	dir=$2
	archive_name=$3

	yt-dlp -x --audio-format mp3 --embed-thumbnail --embed-metadata --cookies-from-browser "$browser_cookies" --download-archive "archives/$archive_name.txt" -P "$dir" -o "%(title)s.%(ext)s" "$url"
}

download PLPzniwWWCSjVQteWPqVvyu8SQsrStVYwZ high-quality-rips/ rips
download PLPzniwWWCSjWZj3-DAOh8ZKrsVReP_Ksm good-playlist/ picks
  • source